# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# IWTM custom values
listen_addresses = '*'
port = 5433
max_connections = 1000 # (Change requires restart)
tcp_keepalives_idle = 60 # TCP_KEEPIDLE, in seconds'
tcp_keepalives_interval = 20 # TCP_KEEPINTVL, in seconds'
tcp_keepalives_count = 2 # TCP_KEEPCNT
shared_buffers = kB # min 128KiB
huge_pages = try # on, off, or try
max_locks_per_transaction = 256
temp_buffers = MB
work_mem = MB
effective_cache_size = MB
min_wal_size = MB
max_wal_size = MB
lc_messages = 'en_US.UTF-8' # Locale for system error message
log_directory = 'pg_log'
log_filename = 'postgresql.log' # Log file name pattern
log_rotation_age = 0 # Automatic rotation of logfiles will happen after that time. 0 disables.
log_rotation_size = 0 # Automatic rotation of logfiles will happen after that much log output. 0 disables.
log_min_duration_statement = 120000 # -1 is disabled, 0 logs all statements
track_activity_query_size = 32768 # (Change requires restart)
log_autovacuum_min_duration = 30000 # -1 disables, 0 logs all actions and
autovacuum_max_workers = 5
autovacuum_naptime = 20
max_parallel_maintenance_workers = 8
maintenance_work_mem = MB
autovacuum_freeze_max_age = 1000000000
shared_preload_libraries = 'pg_stat_statements'
track_io_timing = on
track_activity_query_size = 32768
enable_partitionwise_join = on
constraint_exclusion = off # on, off, or partition
standard_conforming_strings = on |