hnwwansjdmaglo

Untitled

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