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