Debian Codegraph @

src/backend/utils/misc/postgresql.conf.sample

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