postgresql.conf.sample 29 KB

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