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

etc_postgresql_11_main_postgresql.conf 24KB

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