2020-11-02 15:03:45 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# FILE LOCATIONS
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2020-12-29 19:14:36 +00:00
|
|
|
data_directory = '/var/lib/postgresql'
|
2020-11-02 15:03:45 +00:00
|
|
|
external_pid_file = '/run/postgresql/main.pid'
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CONNECTIONS AND AUTHENTICATION
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2020-11-20 16:31:49 +00:00
|
|
|
listen_addresses = '*'
|
2020-11-02 15:03:45 +00:00
|
|
|
port = 7550
|
|
|
|
max_connections = 100
|
|
|
|
unix_socket_directories = '/run/postgresql'
|
|
|
|
|
|
|
|
authentication_timeout = 10s
|
|
|
|
|
2020-11-20 16:31:49 +00:00
|
|
|
ssl = off
|
2020-11-02 15:03:45 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# RESOURCE USAGE (except WAL)
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
shared_buffers = 128MB
|
|
|
|
dynamic_shared_memory_type = posix
|
|
|
|
|
2020-12-13 01:33:40 +00:00
|
|
|
vacuum_cost_delay = 0
|
|
|
|
vacuum_cost_page_hit = 1
|
|
|
|
vacuum_cost_page_miss = 10
|
|
|
|
vacuum_cost_page_dirty = 20
|
|
|
|
vacuum_cost_limit = 200
|
|
|
|
|
|
|
|
bgwriter_delay = 200ms
|
|
|
|
bgwriter_lru_maxpages = 100
|
|
|
|
bgwriter_lru_multiplier = 2.0
|
|
|
|
bgwriter_flush_after = 512kB
|
|
|
|
|
|
|
|
effective_io_concurrency = 1
|
|
|
|
max_worker_processes = 8
|
|
|
|
max_parallel_maintenance_workers = 2
|
|
|
|
max_parallel_workers_per_gather = 2
|
|
|
|
parallel_leader_participation = on
|
|
|
|
max_parallel_workers = 8
|
|
|
|
|
2020-11-02 15:03:45 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2020-12-13 01:33:40 +00:00
|
|
|
track_activities = on
|
|
|
|
track_counts = on
|
|
|
|
track_io_timing = on
|
|
|
|
track_functions = all
|
|
|
|
track_activity_query_size = 1024
|
|
|
|
stats_temp_directory = '/run/postgresql/main.pg_stat_tmp'
|
2020-11-02 15:03:45 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# AUTOVACUUM
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2020-12-13 01:33:40 +00:00
|
|
|
autovacuum = on
|
|
|
|
autovacuum_naptime = 1min
|
|
|
|
|
2020-11-02 15:03:45 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
#------------------------------------------------------------------------------
|