PostgreSQL 15.17 installed from PGDG repository (EL-7 compatible) on Amazon Linux 2:
sudo rpm -ivh --nodeps \
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum install -y --releasever=7 \
--disablerepo="*" --enablerepo="pgdg15" \
postgresql15-server postgresql15Binaries: /usr/pgsql-15/bin/
$HOME/pgdata
Initialized with:
/usr/pgsql-15/bin/initdb -D ~/pgdata --auth=trust --no-locale --encoding=UTF8Runs as the current user (not as postgres system user).
You may need to add the current user to the postgres group; if initdb fails, check your logs.
| Setting | Value |
|---|---|
| Host | localhost |
| Port | 5432 |
| Database | extenddb |
| User | extenddb |
| Password | extenddb-local-dev |
| Connection string | postgresql://extenddb:extenddb-local-dev@localhost:5432/extenddb |
| Admin user | the OS user that ran initdb (trusted via local socket) |
export PATH=/usr/pgsql-15/bin:$PATH
# Start
pg_ctl -D ~/pgdata -l ~/pgdata/server.log start
# Stop
pg_ctl -D ~/pgdata stop
# Status
pg_ctl -D ~/pgdata status
# Logs
tail -f ~/pgdata/server.logpgdata/pg_hba.conf is configured so:
- The
extenddbuser requires md5 password auth over TCP (127.0.0.1,::1) - The OS user that ran
initdbhas trust auth for admin tasks - Local socket connections use trust auth
The extenddb config.toml should use:
[storage.postgres]
connection_string = "postgresql://extenddb:extenddb-local-dev@localhost:5432/extenddb"
pool_size = 20Or via environment variable:
export EXTENDDB__STORAGE__POSTGRES__CONNECTION_STRING=\
"postgresql://extenddb:extenddb-local-dev@localhost:5432/extenddb"Copyright 2026 ExtendDB contributors. Licensed under the Apache License, Version 2.0. See LICENSE for the full text.
This software is provided "as is" without warranty of any kind. ExtendDB is an open source project maintained by AWS. It is not Amazon DynamoDB or an AWS service. "DynamoDB" is a trademark of Amazon.com, Inc. or its affiliates.