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