# PostgreSQL Primary Configuration for Streaming Replication # This is the primary (read-write) server # Connection settings hba_file = '/etc/postgresql/pg_hba.conf' listen_addresses = '*' port = 5432 # WAL settings for streaming replication wal_level = replica max_wal_senders = 10 max_replication_slots = 10 wal_keep_size = 256MB # Synchronous commit (can be 'on', 'remote_apply', 'local', 'off') synchronous_commit = on # Logging logging_collector = 'on' log_directory = '/var/log/postgresql' log_filename = 'postgresql.log' log_statement = 'all' # SSL (disabled for CI/CD testing) ssl = 'off'