2020-11-02 15:03:45 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# FILE LOCATIONS
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
data_directory = '/databases/postgres'
|
|
|
|
external_pid_file = '/run/postgresql/main.pid'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CONNECTIONS AND AUTHENTICATION
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2020-11-04 16:51:36 +00:00
|
|
|
listen_addresses = 'postgresql.routinginfo.redxen.localhost'
|
2020-11-02 15:03:45 +00:00
|
|
|
port = 7550
|
|
|
|
max_connections = 100
|
|
|
|
unix_socket_directories = '/run/postgresql'
|
|
|
|
|
|
|
|
authentication_timeout = 10s
|
|
|
|
|
|
|
|
ssl = on
|
|
|
|
ssl_cert_file = '/etc/ssl/redxen/selfsigned/public.pem'
|
|
|
|
ssl_key_file = '/etc/ssl/redxen/selfsigned/private.key'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# RESOURCE USAGE (except WAL)
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
shared_buffers = 128MB
|
|
|
|
dynamic_shared_memory_type = posix
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# WRITE-AHEAD LOG
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
max_wal_size = 1GB
|
|
|
|
min_wal_size = 80MB
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# REPLICATION
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# QUERY TUNING
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# REPORTING AND LOGGING
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
log_line_prefix = '%m [%p] %q%u@%d '
|
|
|
|
log_timezone = 'Europe/Berlin'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# PROCESS TITLE
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
cluster_name = 'redxen-main'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# STATISTICS
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
stats_temp_directory = '/run/postgresql/12-main.pg_stat_tmp'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# AUTOVACUUM
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CLIENT CONNECTION DEFAULTS
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
datestyle = 'iso, mdy'
|
|
|
|
timezone = 'Europe/Berlin'
|
|
|
|
lc_messages = 'en_US.UTF-8'
|
|
|
|
lc_monetary = 'en_US.UTF-8'
|
|
|
|
lc_numeric = 'en_US.UTF-8'
|
|
|
|
lc_time = 'en_US.UTF-8'
|
|
|
|
default_text_search_config = 'pg_catalog.english'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# LOCK MANAGEMENT
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# VERSION AND PLATFORM COMPATIBILITY
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# ERROR HANDLING
|
|
|
|
#------------------------------------------------------------------------------
|