Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_postgresql_13_main_postgresql.conf 28KB

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