# Path to the host-based authentication file
hba_file = '/mnt/pgsql-15/data/pg_hba.conf'
# Path to the ident configuration file
ident_file = '/mnt/pgsql-15/data/pg_ident.conf'
# IP addresses to listen on for incoming connections
listen_addresses = 'localhost'
# Port on which the PostgreSQL server listens for connections
port = 5432
# Maximum number of concurrent connections allowed
max_connections = 100
# Memory dedicated to PostgreSQL for caching data
shared_buffers = 128MB
# Limit on simultaneously prepared transactions
max_prepared_transactions = 0 # zero disables the feature
# Write-ahead log level (minimal, replica, or logical)
wal_level = replica
# Full page writes of non-critical updates
wal_log_hints = on
# Archiving settings
archive_mode = on
archive_command = 'test ! -f /mnt/pgsql-15/data/archive/%f && cp %p /mnt/pgsql-15/data/%f'
# Maximum number of WAL sender processes
max_wal_senders = 10
# Number of log file segments retained for WAL
wal_keep_segments = 8
# Maximum number of replication slots
max_replication_slots = 10
# Collect timestamp of transaction commit
track_commit_timestamp = off
# Allow/disallow queries during recovery
hot_standby = on
# Timezone settings
log_timezone = 'Asia/Ho_Chi_Minh'
timezone = 'Asia/Ho_Chi_Minh'
# Cluster identifier for process titles
cluster_name = 'My Postgres Cluster'
# Locale settings
datestyle = 'iso, dmy'
lc_messages = 'en_US.UTF-8'
lc_monetary = 'vi_VN'
lc_numeric = 'vi_VN'
lc_time = 'vi_VN'
# Maximum number of locks per transaction
max_locks_per_transaction = 64