github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/pkg/ddevapp/postgres/15/postgresql.conf (about)

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