]> git.somenet.org - root/pub/somesible.git/blob - roles/server/postgresql/files/default/postgresql.conf
roles/server/postgresql/files
[root/pub/somesible.git] / roles / server / postgresql / files / default / postgresql.conf
1 #
2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2025 by someone <someone@somenet.org>
7 #
8 # -----------------------------
9 # PostgreSQL configuration file
10 # -----------------------------
11 #
12 # This file consists of lines of the form:
13 #
14 #   name = value
15 #
16 # (The "=" is optional.)  Whitespace may be used.  Comments are introduced with
17 # "#" anywhere on a line.  The complete list of parameter names and allowed
18 # values can be found in the PostgreSQL documentation.
19 #
20 # The commented-out settings shown in this file represent the default values.
21 # Re-commenting a setting is NOT sufficient to revert it to the default value;
22 # you need to reload the server.
23 #
24 # This file is read on server startup and when the server receives a SIGHUP
25 # signal.  If you edit the file on a running system, you have to SIGHUP the
26 # server for the changes to take effect, run "pg_ctl reload", or execute
27 # "SELECT pg_reload_conf()".  Some parameters, which are marked below,
28 # require a server shutdown and restart to take effect.
29 #
30 # Any parameter can also be given as a command-line option to the server, e.g.,
31 # "postgres -c log_connections=on".  Some parameters can be changed at run time
32 # with the "SET" SQL command.
33 #
34 # Memory units:  B  = bytes            Time units:  us  = microseconds
35 #                kB = kilobytes                     ms  = milliseconds
36 #                MB = megabytes                     s   = seconds
37 #                GB = gigabytes                     min = minutes
38 #                TB = terabytes                     h   = hours
39 #                                                   d   = days
40
41
42 #------------------------------------------------------------------------------
43 # FILE LOCATIONS
44 #------------------------------------------------------------------------------
45
46 # The default values of these variables are driven from the -D command-line
47 # option or PGDATA environment variable, represented here as ConfigDir.
48
49 data_directory = '/var/lib/postgresql/17/main'          # use data in another directory
50                                         # (change requires restart)
51 hba_file = '/etc/postgresql/17/main/pg_hba.conf'        # host-based authentication file
52                                         # (change requires restart)
53 ident_file = '/etc/postgresql/17/main/pg_ident.conf'    # ident configuration file
54                                         # (change requires restart)
55
56 # If external_pid_file is not explicitly set, no extra PID file is written.
57 external_pid_file = '/run/postgresql/17-main.pid'                       # write an extra PID file
58                                         # (change requires restart)
59
60
61 #------------------------------------------------------------------------------
62 # CONNECTIONS AND AUTHENTICATION
63 #------------------------------------------------------------------------------
64
65 # - Connection Settings -
66
67 listen_addresses = '*'          # what IP address(es) to listen on;
68                                         # comma-separated list of addresses;
69                                         # defaults to 'localhost'; use '*' for all
70                                         # (change requires restart)
71 port = 5432                             # (change requires restart)
72 max_connections = 1000                  # (change requires restart)
73 #reserved_connections = 0               # (change requires restart)
74 #superuser_reserved_connections = 3     # (change requires restart)
75 unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
76                                         # (change requires restart)
77 #unix_socket_group = ''                 # (change requires restart)
78 unix_socket_permissions = 0770          # begin with 0 to use octal notation
79                                         # (change requires restart)
80 #bonjour = off                          # advertise server via Bonjour
81                                         # (change requires restart)
82 #bonjour_name = ''                      # defaults to the computer name
83                                         # (change requires restart)
84
85 # - TCP settings -
86 # see "man tcp" for details
87
88 #tcp_keepalives_idle = 0                # TCP_KEEPIDLE, in seconds;
89                                         # 0 selects the system default
90 #tcp_keepalives_interval = 0            # TCP_KEEPINTVL, in seconds;
91                                         # 0 selects the system default
92 #tcp_keepalives_count = 0               # TCP_KEEPCNT;
93                                         # 0 selects the system default
94 #tcp_user_timeout = 0                   # TCP_USER_TIMEOUT, in milliseconds;
95                                         # 0 selects the system default
96
97 #client_connection_check_interval = 0   # time between checks for client
98                                         # disconnection while running queries;
99                                         # 0 for never
100
101 # - Authentication -
102
103 #authentication_timeout = 1min          # 1s-600s
104 password_encryption = md5       # scram-sha-256 or md5
105 #scram_iterations = 4096
106
107 # GSSAPI using Kerberos
108 #krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
109 #krb_caseins_users = off
110 #gss_accept_delegation = off
111
112 # - SSL -
113
114 ssl = on
115 #ssl_ca_file = ''
116 ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
117 #ssl_crl_file = ''
118 #ssl_crl_dir = ''
119 ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
120 #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL'       # allowed SSL ciphers
121 #ssl_prefer_server_ciphers = on
122 #ssl_ecdh_curve = 'prime256v1'
123 #ssl_min_protocol_version = 'TLSv1.2'
124 #ssl_max_protocol_version = ''
125 #ssl_dh_params_file = ''
126 #ssl_passphrase_command = ''
127 #ssl_passphrase_command_supports_reload = off
128
129
130 #------------------------------------------------------------------------------
131 # RESOURCE USAGE (except WAL)
132 #------------------------------------------------------------------------------
133
134 # - Memory -
135
136 shared_buffers = 4GB                    # min 128kB
137                                         # (change requires restart)
138 #huge_pages = try                       # on, off, or try
139                                         # (change requires restart)
140 #huge_page_size = 0                     # zero for system default
141                                         # (change requires restart)
142 temp_buffers = 4GB                      # min 800kB
143 #max_prepared_transactions = 0          # zero disables the feature
144                                         # (change requires restart)
145 # Caution: it is not advisable to set max_prepared_transactions nonzero unless
146 # you actively intend to use prepared transactions.
147 work_mem = 4GB                          # min 64kB
148 #hash_mem_multiplier = 2.0              # 1-1000.0 multiplier on hash table work_mem
149 #maintenance_work_mem = 64MB            # min 64kB
150 #autovacuum_work_mem = -1               # min 64kB, or -1 to use maintenance_work_mem
151 #logical_decoding_work_mem = 64MB       # min 64kB
152 #max_stack_depth = 2MB                  # min 100kB
153 #shared_memory_type = mmap              # the default is the first option
154                                         # supported by the operating system:
155                                         #   mmap
156                                         #   sysv
157                                         #   windows
158                                         # (change requires restart)
159 dynamic_shared_memory_type = posix      # the default is usually the first option
160                                         # supported by the operating system:
161                                         #   posix
162                                         #   sysv
163                                         #   windows
164                                         #   mmap
165                                         # (change requires restart)
166 #min_dynamic_shared_memory = 0MB        # (change requires restart)
167 #vacuum_buffer_usage_limit = 2MB        # size of vacuum and analyze buffer access strategy ring;
168                                         # 0 to disable vacuum buffer access strategy;
169                                         # range 128kB to 16GB
170
171 # SLRU buffers (change requires restart)
172 #commit_timestamp_buffers = 0           # memory for pg_commit_ts (0 = auto)
173 #multixact_offset_buffers = 16          # memory for pg_multixact/offsets
174 #multixact_member_buffers = 32          # memory for pg_multixact/members
175 #notify_buffers = 16                    # memory for pg_notify
176 #serializable_buffers = 32              # memory for pg_serial
177 #subtransaction_buffers = 0             # memory for pg_subtrans (0 = auto)
178 #transaction_buffers = 0                # memory for pg_xact (0 = auto)
179
180 # - Disk -
181
182 #temp_file_limit = -1                   # limits per-process temp file space
183                                         # in kilobytes, or -1 for no limit
184
185 #max_notify_queue_pages = 1048576       # limits the number of SLRU pages allocated
186                                         # for NOTIFY / LISTEN queue
187
188 # - Kernel Resources -
189
190 #max_files_per_process = 1000           # min 64
191                                         # (change requires restart)
192
193 # - Cost-Based Vacuum Delay -
194
195 #vacuum_cost_delay = 0                  # 0-100 milliseconds (0 disables)
196 #vacuum_cost_page_hit = 1               # 0-10000 credits
197 #vacuum_cost_page_miss = 2              # 0-10000 credits
198 #vacuum_cost_page_dirty = 20            # 0-10000 credits
199 #vacuum_cost_limit = 200                # 1-10000 credits
200
201 # - Background Writer -
202
203 #bgwriter_delay = 200ms                 # 10-10000ms between rounds
204 #bgwriter_lru_maxpages = 100            # max buffers written/round, 0 disables
205 #bgwriter_lru_multiplier = 2.0          # 0-10.0 multiplier on buffers scanned/round
206 #bgwriter_flush_after = 512kB           # measured in pages, 0 disables
207
208 # - Asynchronous Behavior -
209
210 #backend_flush_after = 0                # measured in pages, 0 disables
211 #effective_io_concurrency = 1           # 1-1000; 0 disables prefetching
212 #maintenance_io_concurrency = 10        # 1-1000; 0 disables prefetching
213 #io_combine_limit = 128kB               # usually 1-32 blocks (depends on OS)
214 #max_worker_processes = 8               # (change requires restart)
215 #max_parallel_workers_per_gather = 2    # limited by max_parallel_workers
216 #max_parallel_maintenance_workers = 2   # limited by max_parallel_workers
217 #max_parallel_workers = 8               # number of max_worker_processes that
218                                         # can be used in parallel operations
219 #parallel_leader_participation = on
220
221
222 #------------------------------------------------------------------------------
223 # WRITE-AHEAD LOG
224 #------------------------------------------------------------------------------
225
226 # - Settings -
227
228 #wal_level = replica                    # minimal, replica, or logical
229                                         # (change requires restart)
230 #fsync = on                             # flush data to disk for crash safety
231                                         # (turning this off can cause
232                                         # unrecoverable data corruption)
233 #synchronous_commit = on                # synchronization level;
234                                         # off, local, remote_write, remote_apply, or on
235 #wal_sync_method = fsync                # the default is the first option
236                                         # supported by the operating system:
237                                         #   open_datasync
238                                         #   fdatasync (default on Linux and FreeBSD)
239                                         #   fsync
240                                         #   fsync_writethrough
241                                         #   open_sync
242 #full_page_writes = on                  # recover from partial page writes
243 #wal_log_hints = off                    # also do full page writes of non-critical updates
244                                         # (change requires restart)
245 #wal_compression = off                  # enables compression of full-page writes;
246                                         # off, pglz, lz4, zstd, or on
247 #wal_init_zero = on                     # zero-fill new WAL files
248 #wal_recycle = on                       # recycle WAL files
249 #wal_buffers = -1                       # min 32kB, -1 sets based on shared_buffers
250                                         # (change requires restart)
251 #wal_writer_delay = 200ms               # 1-10000 milliseconds
252 #wal_writer_flush_after = 1MB           # measured in pages, 0 disables
253 #wal_skip_threshold = 2MB
254
255 #commit_delay = 0                       # range 0-100000, in microseconds
256 #commit_siblings = 5                    # range 1-1000
257
258 # - Checkpoints -
259
260 checkpoint_timeout = 15min              # range 30s-1d
261 #checkpoint_completion_target = 0.9     # checkpoint target duration, 0.0 - 1.0
262 #checkpoint_flush_after = 256kB         # measured in pages, 0 disables
263 #checkpoint_warning = 30s               # 0 disables
264 max_wal_size = 1GB
265 min_wal_size = 80MB
266
267 # - Prefetching during recovery -
268
269 #recovery_prefetch = try        # prefetch pages referenced in the WAL?
270 #wal_decode_buffer_size = 512kB # lookahead window used for prefetching
271                                 # (change requires restart)
272
273 # - Archiving -
274
275 #archive_mode = off             # enables archiving; off, on, or always
276                                 # (change requires restart)
277 #archive_library = ''           # library to use to archive a WAL file
278                                 # (empty string indicates archive_command should
279                                 # be used)
280 #archive_command = ''           # command to use to archive a WAL file
281                                 # placeholders: %p = path of file to archive
282                                 #               %f = file name only
283                                 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
284 #archive_timeout = 0            # force a WAL file switch after this
285                                 # number of seconds; 0 disables
286
287 # - Archive Recovery -
288
289 # These are only used in recovery mode.
290
291 #restore_command = ''           # command to use to restore an archived WAL file
292                                 # placeholders: %p = path of file to restore
293                                 #               %f = file name only
294                                 # e.g. 'cp /mnt/server/archivedir/%f %p'
295 #archive_cleanup_command = ''   # command to execute at every restartpoint
296 #recovery_end_command = ''      # command to execute at completion of recovery
297
298 # - Recovery Target -
299
300 # Set these only when performing a targeted recovery.
301
302 #recovery_target = ''           # 'immediate' to end recovery as soon as a
303                                 # consistent state is reached
304                                 # (change requires restart)
305 #recovery_target_name = ''      # the named restore point to which recovery will proceed
306                                 # (change requires restart)
307 #recovery_target_time = ''      # the time stamp up to which recovery will proceed
308                                 # (change requires restart)
309 #recovery_target_xid = ''       # the transaction ID up to which recovery will proceed
310                                 # (change requires restart)
311 #recovery_target_lsn = ''       # the WAL LSN up to which recovery will proceed
312                                 # (change requires restart)
313 #recovery_target_inclusive = on # Specifies whether to stop:
314                                 # just after the specified recovery target (on)
315                                 # just before the recovery target (off)
316                                 # (change requires restart)
317 #recovery_target_timeline = 'latest'    # 'current', 'latest', or timeline ID
318                                         # (change requires restart)
319 #recovery_target_action = 'pause'       # 'pause', 'promote', 'shutdown'
320                                         # (change requires restart)
321
322 # - WAL Summarization -
323
324 #summarize_wal = off            # run WAL summarizer process?
325 #wal_summary_keep_time = '10d'  # when to remove old summary files, 0 = never
326
327
328 #------------------------------------------------------------------------------
329 # REPLICATION
330 #------------------------------------------------------------------------------
331
332 # - Sending Servers -
333
334 # Set these on the primary and on any standby that will send replication data.
335
336 #max_wal_senders = 10           # max number of walsender processes
337                                 # (change requires restart)
338 #max_replication_slots = 10     # max number of replication slots
339                                 # (change requires restart)
340 #wal_keep_size = 0              # in megabytes; 0 disables
341 #max_slot_wal_keep_size = -1    # in megabytes; -1 disables
342 #wal_sender_timeout = 60s       # in milliseconds; 0 disables
343 #track_commit_timestamp = off   # collect timestamp of transaction commit
344                                 # (change requires restart)
345
346 # - Primary Server -
347
348 # These settings are ignored on a standby server.
349
350 #synchronous_standby_names = '' # standby servers that provide sync rep
351                                 # method to choose sync standbys, number of sync standbys,
352                                 # and comma-separated list of application_name
353                                 # from standby(s); '*' = all
354 #synchronized_standby_slots = ''        # streaming replication standby server slot
355                                 # names that logical walsender processes will wait for
356
357 # - Standby Servers -
358
359 # These settings are ignored on a primary server.
360
361 #primary_conninfo = ''                  # connection string to sending server
362 #primary_slot_name = ''                 # replication slot on sending server
363 #hot_standby = on                       # "off" disallows queries during recovery
364                                         # (change requires restart)
365 #max_standby_archive_delay = 30s        # max delay before canceling queries
366                                         # when reading WAL from archive;
367                                         # -1 allows indefinite delay
368 #max_standby_streaming_delay = 30s      # max delay before canceling queries
369                                         # when reading streaming WAL;
370                                         # -1 allows indefinite delay
371 #wal_receiver_create_temp_slot = off    # create temp slot if primary_slot_name
372                                         # is not set
373 #wal_receiver_status_interval = 10s     # send replies at least this often
374                                         # 0 disables
375 #hot_standby_feedback = off             # send info from standby to prevent
376                                         # query conflicts
377 #wal_receiver_timeout = 60s             # time that receiver waits for
378                                         # communication from primary
379                                         # in milliseconds; 0 disables
380 #wal_retrieve_retry_interval = 5s       # time to wait before retrying to
381                                         # retrieve WAL after a failed attempt
382 #recovery_min_apply_delay = 0           # minimum delay for applying changes during recovery
383 #sync_replication_slots = off           # enables slot synchronization on the physical standby from the primary
384
385 # - Subscribers -
386
387 # These settings are ignored on a publisher.
388
389 #max_logical_replication_workers = 4    # taken from max_worker_processes
390                                         # (change requires restart)
391 #max_sync_workers_per_subscription = 2  # taken from max_logical_replication_workers
392 #max_parallel_apply_workers_per_subscription = 2        # taken from max_logical_replication_workers
393
394
395 #------------------------------------------------------------------------------
396 # QUERY TUNING
397 #------------------------------------------------------------------------------
398
399 # - Planner Method Configuration -
400
401 #enable_async_append = on
402 #enable_bitmapscan = on
403 #enable_gathermerge = on
404 #enable_hashagg = on
405 #enable_hashjoin = on
406 #enable_incremental_sort = on
407 #enable_indexscan = on
408 #enable_indexonlyscan = on
409 #enable_material = on
410 #enable_memoize = on
411 #enable_mergejoin = on
412 #enable_nestloop = on
413 #enable_parallel_append = on
414 #enable_parallel_hash = on
415 #enable_partition_pruning = on
416 #enable_partitionwise_join = off
417 #enable_partitionwise_aggregate = off
418 #enable_presorted_aggregate = on
419 #enable_seqscan = on
420 #enable_sort = on
421 #enable_tidscan = on
422 #enable_group_by_reordering = on
423
424 # - Planner Cost Constants -
425
426 #seq_page_cost = 1.0                    # measured on an arbitrary scale
427 #random_page_cost = 4.0                 # same scale as above
428 #cpu_tuple_cost = 0.01                  # same scale as above
429 #cpu_index_tuple_cost = 0.005           # same scale as above
430 #cpu_operator_cost = 0.0025             # same scale as above
431 #parallel_setup_cost = 1000.0           # same scale as above
432 #parallel_tuple_cost = 0.1              # same scale as above
433 #min_parallel_table_scan_size = 8MB
434 #min_parallel_index_scan_size = 512kB
435 #effective_cache_size = 4GB
436
437 #jit_above_cost = 100000                # perform JIT compilation if available
438                                         # and query more expensive than this;
439                                         # -1 disables
440 #jit_inline_above_cost = 500000         # inline small functions if query is
441                                         # more expensive than this; -1 disables
442 #jit_optimize_above_cost = 500000       # use expensive JIT optimizations if
443                                         # query is more expensive than this;
444                                         # -1 disables
445
446 # - Genetic Query Optimizer -
447
448 #geqo = on
449 #geqo_threshold = 12
450 #geqo_effort = 5                        # range 1-10
451 #geqo_pool_size = 0                     # selects default based on effort
452 #geqo_generations = 0                   # selects default based on effort
453 #geqo_selection_bias = 2.0              # range 1.5-2.0
454 #geqo_seed = 0.0                        # range 0.0-1.0
455
456 # - Other Planner Options -
457
458 #default_statistics_target = 100        # range 1-10000
459 #constraint_exclusion = partition       # on, off, or partition
460 #cursor_tuple_fraction = 0.1            # range 0.0-1.0
461 #from_collapse_limit = 8
462 #jit = on                               # allow JIT compilation
463 #join_collapse_limit = 8                # 1 disables collapsing of explicit
464                                         # JOIN clauses
465 #plan_cache_mode = auto                 # auto, force_generic_plan or
466                                         # force_custom_plan
467 #recursive_worktable_factor = 10.0      # range 0.001-1000000
468
469
470 #------------------------------------------------------------------------------
471 # REPORTING AND LOGGING
472 #------------------------------------------------------------------------------
473
474 # - Where to Log -
475
476 #log_destination = 'stderr'             # Valid values are combinations of
477                                         # stderr, csvlog, jsonlog, syslog, and
478                                         # eventlog, depending on platform.
479                                         # csvlog and jsonlog require
480                                         # logging_collector to be on.
481
482 # This is used when logging to stderr:
483 #logging_collector = off                # Enable capturing of stderr, jsonlog,
484                                         # and csvlog into log files. Required
485                                         # to be on for csvlogs and jsonlogs.
486                                         # (change requires restart)
487
488 # These are only used if logging_collector is on:
489 #log_directory = 'log'                  # directory where log files are written,
490                                         # can be absolute or relative to PGDATA
491 #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'        # log file name pattern,
492                                                         # can include strftime() escapes
493 #log_file_mode = 0600                   # creation mode for log files,
494                                         # begin with 0 to use octal notation
495 #log_rotation_age = 1d                  # Automatic rotation of logfiles will
496                                         # happen after that time.  0 disables.
497 #log_rotation_size = 10MB               # Automatic rotation of logfiles will
498                                         # happen after that much log output.
499                                         # 0 disables.
500 #log_truncate_on_rotation = off         # If on, an existing log file with the
501                                         # same name as the new log file will be
502                                         # truncated rather than appended to.
503                                         # But such truncation only occurs on
504                                         # time-driven rotation, not on restarts
505                                         # or size-driven rotation.  Default is
506                                         # off, meaning append to existing files
507                                         # in all cases.
508
509 # These are relevant when logging to syslog:
510 #syslog_facility = 'LOCAL0'
511 #syslog_ident = 'postgres'
512 #syslog_sequence_numbers = on
513 #syslog_split_messages = on
514
515 # This is only relevant when logging to eventlog (Windows):
516 # (change requires restart)
517 #event_source = 'PostgreSQL'
518
519 # - When to Log -
520
521 log_min_messages = info         # values in order of decreasing detail:
522                                         #   debug5
523                                         #   debug4
524                                         #   debug3
525                                         #   debug2
526                                         #   debug1
527                                         #   info
528                                         #   notice
529                                         #   warning
530                                         #   error
531                                         #   log
532                                         #   fatal
533                                         #   panic
534
535 #log_min_error_statement = error        # values in order of decreasing detail:
536                                         #   debug5
537                                         #   debug4
538                                         #   debug3
539                                         #   debug2
540                                         #   debug1
541                                         #   info
542                                         #   notice
543                                         #   warning
544                                         #   error
545                                         #   log
546                                         #   fatal
547                                         #   panic (effectively off)
548
549 #log_min_duration_statement = -1        # -1 is disabled, 0 logs all statements
550                                         # and their durations, > 0 logs only
551                                         # statements running at least this number
552                                         # of milliseconds
553
554 #log_min_duration_sample = -1           # -1 is disabled, 0 logs a sample of statements
555                                         # and their durations, > 0 logs only a sample of
556                                         # statements running at least this number
557                                         # of milliseconds;
558                                         # sample fraction is determined by log_statement_sample_rate
559
560 #log_statement_sample_rate = 1.0        # fraction of logged statements exceeding
561                                         # log_min_duration_sample to be logged;
562                                         # 1.0 logs all such statements, 0.0 never logs
563
564
565 #log_transaction_sample_rate = 0.0      # fraction of transactions whose statements
566                                         # are logged regardless of their duration; 1.0 logs all
567                                         # statements from all transactions, 0.0 never logs
568
569 #log_startup_progress_interval = 10s    # Time between progress updates for
570                                         # long-running startup operations.
571                                         # 0 disables the feature, > 0 indicates
572                                         # the interval in milliseconds.
573
574 # - What to Log -
575
576 #debug_print_parse = off
577 #debug_print_rewritten = off
578 #debug_print_plan = off
579 #debug_pretty_print = on
580 log_autovacuum_min_duration = 0 # log autovacuum activity;
581                                         # -1 disables, 0 logs all actions and
582                                         # their durations, > 0 logs only
583                                         # actions running at least this number
584                                         # of milliseconds.
585 #log_checkpoints = on
586 log_connections = on
587 log_disconnections = on
588 #log_duration = off
589 #log_error_verbosity = default          # terse, default, or verbose messages
590 #log_hostname = off
591 log_line_prefix = '%t %q[%u@%d] '               # special values:
592                                         #   %a = application name
593                                         #   %u = user name
594                                         #   %d = database name
595                                         #   %r = remote host and port
596                                         #   %h = remote host
597                                         #   %b = backend type
598                                         #   %p = process ID
599                                         #   %P = process ID of parallel group leader
600                                         #   %t = timestamp without milliseconds
601                                         #   %m = timestamp with milliseconds
602                                         #   %n = timestamp with milliseconds (as a Unix epoch)
603                                         #   %Q = query ID (0 if none or not computed)
604                                         #   %i = command tag
605                                         #   %e = SQL state
606                                         #   %c = session ID
607                                         #   %l = session line number
608                                         #   %s = session start timestamp
609                                         #   %v = virtual transaction ID
610                                         #   %x = transaction ID (0 if none)
611                                         #   %q = stop here in non-session
612                                         #        processes
613                                         #   %% = '%'
614                                         # e.g. '<%u%%%d> '
615 #log_lock_waits = off                   # log lock waits >= deadlock_timeout
616 #log_recovery_conflict_waits = off      # log standby recovery conflict waits
617                                         # >= deadlock_timeout
618 #log_parameter_max_length = -1          # when logging statements, limit logged
619                                         # bind-parameter values to N bytes;
620                                         # -1 means print in full, 0 disables
621 #log_parameter_max_length_on_error = 0  # when logging an error, limit logged
622                                         # bind-parameter values to N bytes;
623                                         # -1 means print in full, 0 disables
624 #log_statement = 'none'                 # none, ddl, mod, all
625 #log_replication_commands = off
626 #log_temp_files = -1                    # log temporary files equal or larger
627                                         # than the specified size in kilobytes;
628                                         # -1 disables, 0 logs all temp files
629 log_timezone = 'Europe/Vienna'
630
631 # - Process Title -
632
633 cluster_name = '17/main'                        # added to process titles if nonempty
634                                         # (change requires restart)
635 #update_process_title = on
636
637
638 #------------------------------------------------------------------------------
639 # STATISTICS
640 #------------------------------------------------------------------------------
641
642 # - Cumulative Query and Index Statistics -
643
644 #track_activities = on
645 #track_activity_query_size = 1024       # (change requires restart)
646 #track_counts = on
647 track_io_timing = on
648 track_wal_io_timing = on
649 #track_functions = none                 # none, pl, all
650 #stats_fetch_consistency = cache        # cache, none, snapshot
651
652
653 # - Monitoring -
654
655 #compute_query_id = auto
656 #log_statement_stats = off
657 #log_parser_stats = off
658 #log_planner_stats = off
659 #log_executor_stats = off
660
661
662 #------------------------------------------------------------------------------
663 # AUTOVACUUM
664 #------------------------------------------------------------------------------
665
666 #autovacuum = on                        # Enable autovacuum subprocess?  'on'
667                                         # requires track_counts to also be on.
668 autovacuum_max_workers = 1              # max number of autovacuum subprocesses
669                                         # (change requires restart)
670 autovacuum_naptime = 5min               # time between autovacuum runs
671 autovacuum_vacuum_threshold = 5000      # min number of row updates before
672                                         # vacuum
673 autovacuum_vacuum_insert_threshold = 100000     # min number of row inserts
674                                                 # before vacuum; -1 disables insert
675                                                 # vacuums
676 autovacuum_analyze_threshold = 500      # min number of row updates before
677                                         # analyze
678 #autovacuum_vacuum_scale_factor = 0.2   # fraction of table size before vacuum
679 #autovacuum_vacuum_insert_scale_factor = 0.2    # fraction of inserts over table
680                                                 # size before insert vacuum
681 #autovacuum_analyze_scale_factor = 0.1  # fraction of table size before analyze
682 autovacuum_freeze_max_age = 800000000   # maximum XID age before forced vacuum
683                                         # (change requires restart)
684 autovacuum_multixact_freeze_max_age = 1000000000        # maximum multixact age
685                                                         # before forced vacuum
686                                                         # (change requires restart)
687 #autovacuum_vacuum_cost_delay = 2ms     # default vacuum cost delay for
688                                         # autovacuum, in milliseconds;
689                                         # -1 means use vacuum_cost_delay
690 #autovacuum_vacuum_cost_limit = -1      # default vacuum cost limit for
691                                         # autovacuum, -1 means use
692                                         # vacuum_cost_limit
693
694
695 #------------------------------------------------------------------------------
696 # CLIENT CONNECTION DEFAULTS
697 #------------------------------------------------------------------------------
698
699 # - Statement Behavior -
700
701 #client_min_messages = notice           # values in order of decreasing detail:
702                                         #   debug5
703                                         #   debug4
704                                         #   debug3
705                                         #   debug2
706                                         #   debug1
707                                         #   log
708                                         #   notice
709                                         #   warning
710                                         #   error
711 #search_path = '"$user", public'        # schema names
712 #row_security = on
713 #default_table_access_method = 'heap'
714 #default_tablespace = ''                # a tablespace name, '' uses the default
715 #default_toast_compression = 'pglz'     # 'pglz' or 'lz4'
716 #temp_tablespaces = ''                  # a list of tablespace names, '' uses
717                                         # only default tablespace
718 #check_function_bodies = on
719 #default_transaction_isolation = 'read committed'
720 #default_transaction_read_only = off
721 #default_transaction_deferrable = off
722 #session_replication_role = 'origin'
723 #statement_timeout = 0                          # in milliseconds, 0 is disabled
724 #transaction_timeout = 0                        # in milliseconds, 0 is disabled
725 #lock_timeout = 0                               # in milliseconds, 0 is disabled
726 #idle_in_transaction_session_timeout = 0        # in milliseconds, 0 is disabled
727 #idle_session_timeout = 0                       # in milliseconds, 0 is disabled
728 #vacuum_freeze_table_age = 150000000
729 #vacuum_freeze_min_age = 50000000
730 #vacuum_failsafe_age = 1600000000
731 #vacuum_multixact_freeze_table_age = 150000000
732 #vacuum_multixact_freeze_min_age = 5000000
733 #vacuum_multixact_failsafe_age = 1600000000
734 #bytea_output = 'hex'                   # hex, escape
735 #xmlbinary = 'base64'
736 #xmloption = 'content'
737 #gin_pending_list_limit = 4MB
738 #createrole_self_grant = ''             # set and/or inherit
739 #event_triggers = on
740
741 # - Locale and Formatting -
742
743 datestyle = 'iso, dmy'
744 #intervalstyle = 'postgres'
745 timezone = 'Europe/Vienna'
746 #timezone_abbreviations = 'Default'     # Select the set of available time zone
747                                         # abbreviations.  Currently, there are
748                                         #   Default
749                                         #   Australia (historical usage)
750                                         #   India
751                                         # You can create your own file in
752                                         # share/timezonesets/.
753 #extra_float_digits = 1                 # min -15, max 3; any value >0 actually
754                                         # selects precise output mode
755 #client_encoding = sql_ascii            # actually, defaults to database
756                                         # encoding
757
758 # These settings are initialized by initdb, but they can be changed.
759 lc_messages = 'C.UTF8'                  # locale for system error message
760                                         # strings
761 lc_monetary = 'C.UTF8'                  # locale for monetary formatting
762 lc_numeric = 'C.UTF8'                   # locale for number formatting
763 lc_time = 'C.UTF8'                      # locale for time formatting
764
765 #icu_validation_level = warning         # report ICU locale validation
766                                         # errors at the given level
767
768 # default configuration for text search
769 default_text_search_config = 'pg_catalog.english'
770
771 # - Shared Library Preloading -
772
773 #local_preload_libraries = ''
774 #session_preload_libraries = ''
775 #shared_preload_libraries = ''          # (change requires restart)
776 #jit_provider = 'llvmjit'               # JIT library to use
777
778 # - Other Defaults -
779
780 #dynamic_library_path = '$libdir'
781 #extension_destdir = ''                 # prepend path when loading extensions
782                                         # and shared objects (added by Debian)
783 #gin_fuzzy_search_limit = 0
784
785
786 #------------------------------------------------------------------------------
787 # LOCK MANAGEMENT
788 #------------------------------------------------------------------------------
789
790 deadlock_timeout = 15s
791 #max_locks_per_transaction = 64         # min 10
792                                         # (change requires restart)
793 #max_pred_locks_per_transaction = 64    # min 10
794                                         # (change requires restart)
795 #max_pred_locks_per_relation = -2       # negative values mean
796                                         # (max_pred_locks_per_transaction
797                                         #  / -max_pred_locks_per_relation) - 1
798 #max_pred_locks_per_page = 2            # min 0
799
800
801 #------------------------------------------------------------------------------
802 # VERSION AND PLATFORM COMPATIBILITY
803 #------------------------------------------------------------------------------
804
805 # - Previous PostgreSQL Versions -
806
807 #array_nulls = on
808 #backslash_quote = safe_encoding        # on, off, or safe_encoding
809 #escape_string_warning = on
810 #lo_compat_privileges = off
811 #quote_all_identifiers = off
812 #standard_conforming_strings = on
813 #synchronize_seqscans = on
814
815 # - Other Platforms and Clients -
816
817 #transform_null_equals = off
818 allow_alter_system = off
819
820
821 #------------------------------------------------------------------------------
822 # ERROR HANDLING
823 #------------------------------------------------------------------------------
824
825 #exit_on_error = off                    # terminate session on any error?
826 #restart_after_crash = on               # reinitialize after backend crash?
827 #data_sync_retry = off                  # retry or panic on failure to fsync
828                                         # data?
829                                         # (change requires restart)
830 #recovery_init_sync_method = fsync      # fsync, syncfs (Linux 5.8+)
831
832
833 #------------------------------------------------------------------------------
834 # CONFIG FILE INCLUDES
835 #------------------------------------------------------------------------------
836
837 # These options allow settings to be loaded from files other than the
838 # default postgresql.conf.  Note that these are directives, not variable
839 # assignments, so they can usefully be given more than once.
840
841 #include_dir = 'conf.d'                 # include files ending in '.conf' from
842                                         # a directory, e.g., 'conf.d'
843 #include_if_exists = '...'              # include file only if it exists
844 #include = '...'                        # include file
845
846
847 #------------------------------------------------------------------------------
848 # CUSTOMIZED OPTIONS
849 #------------------------------------------------------------------------------
850
851 # Add settings for extensions here