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