2121# require a server shutdown and restart to take effect.
2222#
2323# Any parameter can also be given as a command-line option to the server, e.g.,
24- # "postgres -c log_connections=on ". Some parameters can be changed at run time
24+ # "postgres -c log_connections=all ". Some parameters can be changed at run time
2525# with the "SET" SQL command.
2626#
2727# Memory units: B = bytes Time units: us = microseconds
@@ -79,6 +79,8 @@ max_connections = 128
7979#authentication_timeout = 1min # 1s-600s
8080#password_encryption = scram-sha-256 # scram-sha-256 or md5
8181#scram_iterations = 4096
82+ #md5_password_warnings = on
83+ #oauth_validator_libraries = '' # comma-separated list of trusted validator modules
8284
8385# GSSAPI using Kerberos
8486
@@ -94,9 +96,10 @@ ssl = off
9496#ssl_crl_file = ''
9597#ssl_crl_dir = ''
9698#ssl_key_file = ''
97- #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
99+ #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed TLSv1.2 ciphers
100+ #ssl_tls13_ciphers = '' # allowed TLSv1.3 cipher suites, blank for default
98101#ssl_prefer_server_ciphers = on
99- #ssl_ecdh_curve = 'prime256v1'
102+ #ssl_groups = 'X25519: prime256v1'
100103#ssl_min_protocol_version = 'TLSv1.2'
101104#ssl_max_protocol_version = ''
102105#ssl_dh_params_file = ''
@@ -155,35 +158,40 @@ dynamic_shared_memory_type = windows # the default is usually the first o
155158
156159#temp_file_limit = -1 # limits per-process temp file space
157160 # in kilobytes, or -1 for no limit
158-
161+ #file_copy_method = copy # copy, clone (if supported by OS)
159162#max_notify_queue_pages = 1048576 # limits the number of SLRU pages allocated
160163 # for NOTIFY / LISTEN queue
161164
162165# - Kernel Resources -
163166
164167#max_files_per_process = 1000 # min 64
165168
166- # - Cost-Based Vacuum Delay -
167-
168- #vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
169- #vacuum_cost_page_hit = 1 # 0-10000 credits
170- #vacuum_cost_page_miss = 2 # 0-10000 credits
171- #vacuum_cost_page_dirty = 20 # 0-10000 credits
172- #vacuum_cost_limit = 200 # 1-10000 credits
173-
174169# - Background Writer -
175170
176171#bgwriter_delay = 200ms # 10-10000ms between rounds
177172#bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables
178173#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
179174#bgwriter_flush_after = 0 # measured in pages, 0 disables
180175
181- # - Asynchronous Behavior -
176+ # - I/O -
182177
183178#backend_flush_after = 0 # measured in pages, 0 disables
184- #effective_io_concurrency = 0 # 1-1000; 0 disables prefetching
185- #io_combine_limit = 128kB # usually 1-32 blocks (depends on OS)
186- #maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
179+ #effective_io_concurrency = 16 # 1-1000; 0 disables issuing multiple simultaneous IO requests
180+ #maintenance_io_concurrency = 16 # 1-1000; same as effective_io_concurrency
181+ #io_max_combine_limit = 128kB # usually 1-128 blocks (depends on OS)
182+ # (change requires restart)
183+ #io_combine_limit = 128kB # usually 1-128 blocks (depends on OS)
184+
185+ #io_method = worker # worker, io_uring, sync
186+ # (change requires restart)
187+ #io_max_concurrency = -1 # Max number of IOs that one process
188+ # can execute simultaneously
189+ # -1 sets based on shared_buffers
190+ # (change requires restart)
191+ #io_workers = 3 # 1-32;
192+
193+ # - Worker Processes -
194+
187195#max_worker_processes = 8
188196#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers
189197#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers
@@ -295,6 +303,7 @@ min_wal_size = 80MB
295303#max_replication_slots = 10 # max number of replication slots
296304#wal_keep_size = 0 # in megabytes; 0 disables
297305#max_slot_wal_keep_size = -1 # in megabytes; -1 disables
306+ #idle_replication_slot_timeout = 0 # in seconds; 0 disables
298307#wal_sender_timeout = 60s # in milliseconds; 0 disables
299308#track_commit_timestamp = off # collect timestamp of transaction commit
300309
@@ -340,6 +349,8 @@ min_wal_size = 80MB
340349
341350# These settings are ignored on a publisher.
342351
352+ #max_active_replication_origins = 10 # max number of active replication origins
353+ # (change requires restart)
343354#max_logical_replication_workers = 4 # taken from max_worker_processes
344355#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
345356#max_parallel_apply_workers_per_subscription = 2 # taken from max_logical_replication_workers
@@ -372,6 +383,8 @@ min_wal_size = 80MB
372383#enable_sort = on
373384#enable_tidscan = on
374385#enable_group_by_reordering = on
386+ #enable_distinct_reordering = on
387+ #enable_self_join_elimination = on
375388
376389# - Planner Cost Constants -
377390
@@ -533,9 +546,11 @@ log_min_messages = {log_level} # values in order of decreasing
533546 # actions running at least this number
534547 # of milliseconds.
535548#log_checkpoints = on
536- #log_connections = off
549+ #log_connections = '' # log aspects of connection setup
550+ # options include receipt, authentication, authorization,
551+ # setup_durations, and all to log all of these aspects
537552#log_disconnections = off
538- #log_duration = off
553+ #log_duration = off # log statement duration
539554#log_error_verbosity = default # terse, default, or verbose messages
540555#log_hostname = off
541556log_line_prefix = '%m [%p] ' # special values:
@@ -544,6 +559,7 @@ log_line_prefix = '%m [%p] ' # special values:
544559 # %d = database name
545560 # %r = remote host and port
546561 # %h = remote host
562+ # %L = local address
547563 # %b = backend type
548564 # %p = process ID
549565 # %P = process ID of parallel group leader
@@ -563,6 +579,7 @@ log_line_prefix = '%m [%p] ' # special values:
563579 # %% = '%'
564580 # e.g. '<%u%%%d> '
565581#log_lock_waits = off # log lock waits >= deadlock_timeout
582+ #log_lock_failures = off # log lock failures
566583#log_recovery_conflict_waits = off # log standby recovery conflict waits
567584 # >= deadlock_timeout
568585#log_parameter_max_length = -1 # when logging statements, limit logged
@@ -594,6 +611,7 @@ log_timezone = '{time_zone}'
594611#track_activities = on
595612#track_activity_query_size = 1024
596613track_counts = on
614+ #track_cost_delay_timing = off
597615#track_io_timing = off
598616#track_wal_io_timing = off
599617#track_functions = none # none, pl, all
@@ -607,36 +625,62 @@ track_counts = on
607625#log_planner_stats = off
608626#log_executor_stats = off
609627
610- # -----------------------------------------------------------------------------------
611- # AUTOVACUUM
612- # -----------------------------------------------------------------------------------
628+ #------------------------------------------------------------------------------
629+ # VACUUMING
630+ #------------------------------------------------------------------------------
631+
632+ # - Automatic Vacuuming -
613633
614634autovacuum = on # Enable autovacuum subprocess? 'on'
615635 # requires track_counts to also be on.
636+ autovacuum_worker_slots = 16 # autovacuum worker slots to allocate
637+ # (change requires restart)
616638#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
617639#autovacuum_naptime = 1min # time between autovacuum runs
618- #autovacuum_vacuum_threshold = 50 # min number of row updates before
619- # vacuum
640+ #autovacuum_vacuum_threshold = 50 # min number of row updates before vacuum
620641#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts
621- # before vacuum; -1 disables insert
622- # vacuums
623- #autovacuum_analyze_threshold = 50 # min number of row updates before
624- # analyze
625- #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
626- #autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table
627- # size before insert vacuum
628- #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
642+ # before vacuum; -1 disables insert vacuums
643+ #autovacuum_analyze_threshold = 50 # min number of row updates before analyze
644+ #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
645+ #autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of unfrozen pages
646+ # before insert vacuum
647+ #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
648+ #autovacuum_vacuum_max_threshold = 100000000 # max number of row updates
649+ # before vacuum; -1 disables max threshold
629650#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
630-
631- #autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
651+ # (change requires restart)
652+ #autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
632653 # before forced vacuum
654+ # (change requires restart)
633655#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
634656 # autovacuum, in milliseconds;
635657 # -1 means use vacuum_cost_delay
636658#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
637659 # autovacuum, -1 means use
638660 # vacuum_cost_limit
639661
662+ # - Cost-Based Vacuum Delay -
663+
664+ #vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
665+ #vacuum_cost_page_hit = 1 # 0-10000 credits
666+ #vacuum_cost_page_miss = 2 # 0-10000 credits
667+ #vacuum_cost_page_dirty = 20 # 0-10000 credits
668+ #vacuum_cost_limit = 200 # 1-10000 credits
669+
670+ # - Default Behavior -
671+
672+ #vacuum_truncate = on # enable truncation after vacuum
673+
674+ # - Freezing -
675+
676+ #vacuum_freeze_table_age = 150000000
677+ #vacuum_freeze_min_age = 50000000
678+ #vacuum_failsafe_age = 1600000000
679+ #vacuum_multixact_freeze_table_age = 150000000
680+ #vacuum_multixact_freeze_min_age = 5000000
681+ #vacuum_multixact_failsafe_age = 1600000000
682+ #vacuum_max_eager_freeze_failure_rate = 0.03 # 0 disables eager scanning
683+
640684# -----------------------------------------------------------------------------------
641685# CLIENT CONNECTION DEFAULTS
642686# -----------------------------------------------------------------------------------
@@ -670,12 +714,6 @@ autovacuum = on # Enable autovacuum subprocess? 'on
670714#lock_timeout = 0 # in milliseconds, 0 is disabled
671715#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
672716#idle_session_timeout = 0 # in milliseconds, 0 is disabled
673- #vacuum_freeze_table_age = 150000000
674- #vacuum_freeze_min_age = 50000000
675- #vacuum_failsafe_age = 1600000000
676- #vacuum_multixact_freeze_table_age = 150000000
677- #vacuum_multixact_freeze_min_age = 5000000
678- #vacuum_multixact_failsafe_age = 1600000000
679717#bytea_output = 'hex' # hex, escape
680718#xmlbinary = 'base64'
681719#xmloption = 'content'
@@ -722,6 +760,7 @@ default_text_search_config = 'pg_catalog.russian'
722760# - Other Defaults -
723761
724762#dynamic_library_path = '$libdir'
763+ #extension_control_path = '$system'
725764#gin_fuzzy_search_limit = 0
726765
727766# -----------------------------------------------------------------------------------
0 commit comments