· 5 years ago · Feb 13, 2020, 03:36 AM
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
59listen_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)
63port = 5432 # (change requires restart)
64max_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
121shared_buffers = 8192MB # 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.
130work_mem = 1024MB # min 64kB
131maintenance_work_mem = 1024MB # 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)
140dynamic_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
193wal_level = logical # 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
224max_wal_size = 1GB
225min_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
232archive_mode = off # enables archiving; off, on, or always
233 # (change requires restart)
234
235
236#archive_command = 'copy "%p" "\\\\xxx.xxx.xxx.xxx\\wal_archive\\%f" ' # Windows # command to use to archive a logfile segment
237#archive_command = 'copy "%p" "\\\\xxx.xxx.xxx.xxx\\wal_archive\\%f" ' # Windows # command to use to archive a logfile segment
238 # placeholders: %p = path of file to archive
239 # %f = file name only
240 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
241archive_timeout = 0 # force a logfile segment switch after this
242 # number of seconds; 0 disables
243
244# - Archive Recovery -
245
246# These are only used in recovery mode.
247
248restore_command = 'copy "\\\\xxx.xxx.xxx.xxx\\wal_archive\\%f" "%p"' # command to use to restore an archived logfile segment
249 # placeholders: %p = path of file to restore
250 # %f = file name only
251 # e.g. 'cp /mnt/server/archivedir/%f %p'
252 # (change requires restart)
253#archive_cleanup_command = '' # command to execute at every restartpoint
254#recovery_end_command = '' # command to execute at completion of recovery
255
256# - Recovery Target -
257
258# Set these only when performing a targeted recovery.
259
260#recovery_target = '' # 'immediate' to end recovery as soon as a
261 # consistent state is reached
262 # (change requires restart)
263#recovery_target_name = '' # the named restore point to which recovery will proceed
264 # (change requires restart)
265#recovery_target_time = '' # the time stamp up to which recovery will proceed
266 # (change requires restart)
267#recovery_target_xid = '' # the transaction ID up to which recovery will proceed
268 # (change requires restart)
269#recovery_target_lsn = '' # the WAL LSN up to which recovery will proceed
270 # (change requires restart)
271#recovery_target_inclusive = on # Specifies whether to stop:
272 # just after the specified recovery target (on)
273 # just before the recovery target (off)
274 # (change requires restart)
275#recovery_target_timeline = 'latest' # 'current', 'latest', or timeline ID
276 # (change requires restart)
277#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
278 # (change requires restart)
279
280
281#------------------------------------------------------------------------------
282# REPLICATION
283#------------------------------------------------------------------------------
284
285# - Sending Servers -
286
287# Set these on the master and on any standby that will send replication data.
288
289#max_wal_senders = 10 # max number of walsender processes
290 # (change requires restart)
291#wal_keep_segments = 0 # in logfile segments; 0 disables
292#wal_sender_timeout = 60s # in milliseconds; 0 disables
293
294#max_replication_slots = 10 # max number of replication slots
295 # (change requires restart)
296#track_commit_timestamp = off # collect timestamp of transaction commit
297 # (change requires restart)
298
299# - Master Server -
300
301# These settings are ignored on a standby server.
302
303#synchronous_standby_names = '' # standby servers that provide sync rep
304 # method to choose sync standbys, number of sync standbys,
305 # and comma-separated list of application_name
306 # from standby(s); '*' = all
307#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
308
309# - Standby Servers -
310
311# These settings are ignored on a master server.
312
313primary_conninfo = 'host=xxx.xxx.xxx.xxx port=5432 user=replicator password=xxxxxxxxxxx' # connection string to sending server
314 # (change requires restart)
315primary_slot_name = 'replicator' # replication slot on sending server
316 # (change requires restart)
317promote_trigger_file = 'C:\triggerfile' # file name whose presence ends recovery
318hot_standby = on # "off" disallows queries during recovery
319 # (change requires restart)
320#max_standby_archive_delay = 30s # max delay before canceling queries
321 # when reading WAL from archive;
322 # -1 allows indefinite delay
323#max_standby_streaming_delay = 30s # max delay before canceling queries
324 # when reading streaming WAL;
325 # -1 allows indefinite delay
326#wal_receiver_status_interval = 10s # send replies at least this often
327 # 0 disables
328hot_standby_feedback = on # send info from standby to prevent
329 # query conflicts
330#wal_receiver_timeout = 60s # time that receiver waits for
331 # communication from master
332 # in milliseconds; 0 disables
333#wal_retrieve_retry_interval = 5s # time to wait before retrying to
334 # retrieve WAL after a failed attempt
335#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
336
337# - Subscribers -
338
339# These settings are ignored on a publisher.
340
341#max_logical_replication_workers = 4 # taken from max_worker_processes
342 # (change requires restart)
343#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
344
345
346#------------------------------------------------------------------------------
347# QUERY TUNING
348#------------------------------------------------------------------------------
349
350# - Planner Method Configuration -
351
352#enable_bitmapscan = on
353#enable_hashagg = on
354#enable_hashjoin = on
355#enable_indexscan = on
356#enable_indexonlyscan = on
357#enable_material = on
358#enable_mergejoin = on
359#enable_nestloop = on
360#enable_parallel_append = on
361#enable_seqscan = on
362#enable_sort = on
363#enable_tidscan = on
364#enable_partitionwise_join = off
365#enable_partitionwise_aggregate = off
366#enable_parallel_hash = on
367#enable_partition_pruning = on
368
369# - Planner Cost Constants -
370
371#seq_page_cost = 1.0 # measured on an arbitrary scale
372#random_page_cost = 4.0 # same scale as above
373#cpu_tuple_cost = 0.01 # same scale as above
374#cpu_index_tuple_cost = 0.005 # same scale as above
375#cpu_operator_cost = 0.0025 # same scale as above
376#parallel_tuple_cost = 0.1 # same scale as above
377#parallel_setup_cost = 1000.0 # same scale as above
378
379#jit_above_cost = 100000 # perform JIT compilation if available
380 # and query more expensive than this;
381 # -1 disables
382#jit_inline_above_cost = 500000 # inline small functions if query is
383 # more expensive than this; -1 disables
384#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
385 # query is more expensive than this;
386 # -1 disables
387
388#min_parallel_table_scan_size = 8MB
389#min_parallel_index_scan_size = 512kB
390#effective_cache_size = 4GB
391
392# - Genetic Query Optimizer -
393
394#geqo = on
395#geqo_threshold = 12
396#geqo_effort = 5 # range 1-10
397#geqo_pool_size = 0 # selects default based on effort
398#geqo_generations = 0 # selects default based on effort
399#geqo_selection_bias = 2.0 # range 1.5-2.0
400#geqo_seed = 0.0 # range 0.0-1.0
401
402# - Other Planner Options -
403
404#default_statistics_target = 100 # range 1-10000
405#constraint_exclusion = partition # on, off, or partition
406#cursor_tuple_fraction = 0.1 # range 0.0-1.0
407#from_collapse_limit = 8
408#join_collapse_limit = 8 # 1 disables collapsing of explicit
409 # JOIN clauses
410#force_parallel_mode = off
411#jit = on # allow JIT compilation
412#plan_cache_mode = auto # auto, force_generic_plan or
413 # force_custom_plan
414
415
416#------------------------------------------------------------------------------
417# REPORTING AND LOGGING
418#------------------------------------------------------------------------------
419
420# - Where to Log -
421
422log_destination = 'csvlog' # Valid values are combinations of
423 # stderr, csvlog, syslog, and eventlog,
424 # depending on platform. csvlog
425 # requires logging_collector to be on.
426
427# This is used when logging to stderr:
428logging_collector = on # Enable capturing of stderr and csvlog
429 # into log files. Required to be on for
430 # csvlogs.
431 # (change requires restart)
432
433# These are only used if logging_collector is on:
434#log_directory = 'log' # directory where log files are written,
435 # can be absolute or relative to PGDATA
436#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
437 # can include strftime() escapes
438log_file_mode = 0640 # creation mode for log files,
439 # begin with 0 to use octal notation
440#log_truncate_on_rotation = off # If on, an existing log file with the
441 # same name as the new log file will be
442 # truncated rather than appended to.
443 # But such truncation only occurs on
444 # time-driven rotation, not on restarts
445 # or size-driven rotation. Default is
446 # off, meaning append to existing files
447 # in all cases.
448#log_rotation_age = 1d # Automatic rotation of logfiles will
449 # happen after that time. 0 disables.
450#log_rotation_size = 10MB # Automatic rotation of logfiles will
451 # happen after that much log output.
452 # 0 disables.
453
454# These are relevant when logging to syslog:
455#syslog_facility = 'LOCAL0'
456#syslog_ident = 'postgres'
457#syslog_sequence_numbers = on
458#syslog_split_messages = on
459
460# This is only relevant when logging to eventlog (win32):
461# (change requires restart)
462#event_source = 'PostgreSQL'
463
464# - When to Log -
465
466#log_min_messages = warning # values in order of decreasing detail:
467 # debug5
468 # debug4
469 # debug3
470 # debug2
471 # debug1
472 # info
473 # notice
474 # warning
475 # error
476 # log
477 # fatal
478 # panic
479
480#log_min_error_statement = error # values in order of decreasing detail:
481 # debug5
482 # debug4
483 # debug3
484 # debug2
485 # debug1
486 # info
487 # notice
488 # warning
489 # error
490 # log
491 # fatal
492 # panic (effectively off)
493
494log_min_duration_statement = 2000 # -1 is disabled, 0 logs all statements
495 # and their durations, > 0 logs only
496 # statements running at least this number
497 # of milliseconds
498
499#log_transaction_sample_rate = 0.0 # Fraction of transactions whose statements
500 # are logged regardless of their duration. 1.0 logs all
501 # statements from all transactions, 0.0 never logs.
502
503# - What to Log -
504
505#debug_print_parse = off
506#debug_print_rewritten = off
507#debug_print_plan = off
508#debug_pretty_print = on
509#log_checkpoints = off
510#log_connections = off
511#log_disconnections = off
512#log_duration = off
513#log_error_verbosity = default # terse, default, or verbose messages
514#log_hostname = off
515#log_line_prefix = '%m [%p] %u %r %h %a' # special values:
516 # %a = application name
517 # %u = user name
518 # %d = database name
519 # %r = remote host and port
520 # %h = remote host
521 # %p = process ID
522 # %t = timestamp without milliseconds
523 # %m = timestamp with milliseconds
524 # %n = timestamp with milliseconds (as a Unix epoch)
525 # %i = command tag
526 # %e = SQL state
527 # %c = session ID
528 # %l = session line number
529 # %s = session start timestamp
530 # %v = virtual transaction ID
531 # %x = transaction ID (0 if none)
532 # %q = stop here in non-session
533 # processes
534 # %% = '%'
535 # e.g. '<%u%%%d> '
536#log_lock_waits = off # log lock waits >= deadlock_timeout
537#log_statement = 'none' # none, ddl, mod, all
538#log_replication_commands = off
539#log_temp_files = -1 # log temporary files equal or larger
540 # than the specified size in kilobytes;
541 # -1 disables, 0 logs all temp files
542log_timezone = 'Africa/Harare'
543
544#------------------------------------------------------------------------------
545# PROCESS TITLE
546#------------------------------------------------------------------------------
547
548#cluster_name = '' # added to process titles if nonempty
549 # (change requires restart)
550#update_process_title = off
551
552
553#------------------------------------------------------------------------------
554# STATISTICS
555#------------------------------------------------------------------------------
556
557# - Query and Index Statistics Collector -
558
559#track_activities = on
560#track_counts = on
561#track_io_timing = off
562#track_functions = none # none, pl, all
563#track_activity_query_size = 1024 # (change requires restart)
564#stats_temp_directory = 'pg_stat_tmp'
565
566
567# - Monitoring -
568
569#log_parser_stats = off
570#log_planner_stats = off
571#log_executor_stats = off
572#log_statement_stats = off
573
574
575#------------------------------------------------------------------------------
576# AUTOVACUUM
577#------------------------------------------------------------------------------
578
579#autovacuum = on # Enable autovacuum subprocess? 'on'
580 # requires track_counts to also be on.
581#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
582 # their durations, > 0 logs only
583 # actions running at least this number
584 # of milliseconds.
585#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
586 # (change requires restart)
587#autovacuum_naptime = 1min # time between autovacuum runs
588#autovacuum_vacuum_threshold = 50 # min number of row updates before
589 # vacuum
590#autovacuum_analyze_threshold = 50 # min number of row updates before
591 # analyze
592#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
593#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
594#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
595 # (change requires restart)
596#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
597 # before forced vacuum
598 # (change requires restart)
599#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
600 # autovacuum, in milliseconds;
601 # -1 means use vacuum_cost_delay
602#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
603 # autovacuum, -1 means use
604 # vacuum_cost_limit
605
606
607#------------------------------------------------------------------------------
608# CLIENT CONNECTION DEFAULTS
609#------------------------------------------------------------------------------
610
611# - Statement Behavior -
612
613#client_min_messages = notice # values in order of decreasing detail:
614 # debug5
615 # debug4
616 # debug3
617 # debug2
618 # debug1
619 # log
620 # notice
621 # warning
622 # error
623#search_path = '"$user", public' # schema names
624#row_security = on
625#default_tablespace = '' # a tablespace name, '' uses the default
626#temp_tablespaces = '' # a list of tablespace names, '' uses
627 # only default tablespace
628#default_table_access_method = 'heap'
629#check_function_bodies = on
630#default_transaction_isolation = 'read committed'
631#default_transaction_read_only = off
632#default_transaction_deferrable = off
633#session_replication_role = 'origin'
634#statement_timeout = 0 # in milliseconds, 0 is disabled
635#lock_timeout = 0 # in milliseconds, 0 is disabled
636#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
637#vacuum_freeze_min_age = 50000000
638#vacuum_freeze_table_age = 150000000
639#vacuum_multixact_freeze_min_age = 5000000
640#vacuum_multixact_freeze_table_age = 150000000
641#vacuum_cleanup_index_scale_factor = 0.1 # fraction of total number of tuples
642 # before index cleanup, 0 always performs
643 # index cleanup
644#bytea_output = 'hex' # hex, escape
645#xmlbinary = 'base64'
646#xmloption = 'content'
647#gin_fuzzy_search_limit = 0
648#gin_pending_list_limit = 4MB
649
650# - Locale and Formatting -
651
652datestyle = 'iso, ymd'
653#intervalstyle = 'postgres'
654timezone = 'Africa/Harare'
655#timezone_abbreviations = 'Default' # Select the set of available time zone
656 # abbreviations. Currently, there are
657 # Default
658 # Australia (historical usage)
659 # India
660 # You can create your own file in
661 # share/timezonesets/.
662#extra_float_digits = 1 # min -15, max 3; any value >0 actually
663 # selects precise output mode
664#client_encoding = sql_ascii # actually, defaults to database
665 # encoding
666
667# These settings are initialized by initdb, but they can be changed.
668lc_messages = 'English_South Africa.1252' # locale for system error message
669 # strings
670lc_monetary = 'English_South Africa.1252' # locale for monetary formatting
671lc_numeric = 'English_South Africa.1252' # locale for number formatting
672lc_time = 'English_South Africa.1252' # locale for time formatting
673
674# default configuration for text search
675default_text_search_config = 'pg_catalog.english'
676
677# - Shared Library Preloading -
678
679shared_preload_libraries = 'pg_stat_statements' # (change requires restart)
680#local_preload_libraries = ''
681#session_preload_libraries = ''
682#jit_provider = 'llvmjit' # JIT library to use
683
684# - Other Defaults -
685
686#dynamic_library_path = '$libdir'
687
688
689#------------------------------------------------------------------------------
690# LOCK MANAGEMENT
691#------------------------------------------------------------------------------
692
693#deadlock_timeout = 1s
694#max_locks_per_transaction = 64 # min 10
695 # (change requires restart)
696#max_pred_locks_per_transaction = 64 # min 10
697 # (change requires restart)
698#max_pred_locks_per_relation = -2 # negative values mean
699 # (max_pred_locks_per_transaction
700 # / -max_pred_locks_per_relation) - 1
701#max_pred_locks_per_page = 2 # min 0
702
703
704#------------------------------------------------------------------------------
705# VERSION AND PLATFORM COMPATIBILITY
706#------------------------------------------------------------------------------
707
708# - Previous PostgreSQL Versions -
709
710#array_nulls = on
711#backslash_quote = safe_encoding # on, off, or safe_encoding
712#escape_string_warning = on
713#lo_compat_privileges = off
714#operator_precedence_warning = off
715#quote_all_identifiers = off
716#standard_conforming_strings = on
717#synchronize_seqscans = on
718
719# - Other Platforms and Clients -
720
721#transform_null_equals = off
722
723
724#------------------------------------------------------------------------------
725# ERROR HANDLING
726#------------------------------------------------------------------------------
727
728#exit_on_error = off # terminate session on any error?
729#restart_after_crash = on # reinitialize after backend crash?
730#data_sync_retry = off # retry or panic on failure to fsync
731 # data?
732 # (change requires restart)
733
734
735#------------------------------------------------------------------------------
736# CONFIG FILE INCLUDES
737#------------------------------------------------------------------------------
738
739# These options allow settings to be loaded from files other than the
740# default postgresql.conf. Note that these are directives, not variable
741# assignments, so they can usefully be given more than once.
742
743#include_dir = '...' # include files ending in '.conf' from
744 # a directory, e.g., 'conf.d'
745#include_if_exists = '...' # include file only if it exists
746#include = '...' # include file
747
748
749#------------------------------------------------------------------------------
750# CUSTOMIZED OPTIONS
751#------------------------------------------------------------------------------
752
753# Add settings for extensions here