Guest User

Untitled

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