postgresql.conf 28 KB

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