# ----------------------------- # BASIC # ----------------------------- listen_addresses = '*' port = 5432 max_connections = 100 # ----------------------------- # REPLICATION # ----------------------------- wal_level = replica hot_standby = on max_wal_senders = 10 max_replication_slots = 10 wal_keep_size = 256MB # ----------------------------- # REPLICA READ SAFETY # ----------------------------- hot_standby_feedback = on # ----------------------------- # LOGGING (optional but useful) # ----------------------------- logging_collector = on log_destination = 'stderr' log_directory = 'log' log_filename = 'postgresql-%Y-%m-%d.log' log_statement = 'none' # ----------------------------- # FILE LOCATIONS (IMPORTANT) # ----------------------------- hba_file = '/etc/postgresql/pg_hba.conf'