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