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