Guest User

Untitled

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