11# file: postgresql/defaults/main.yml
22
33# Basic settings
4- postgresql_version : 11
4+ postgresql_version : 12
55postgresql_version_terse : " {{ postgresql_version | replace('.', '') }}" # Short version of the postgresql_version, used in some path and filenames
66postgresql_encoding : " UTF-8"
77postgresql_data_checksums : false
@@ -138,6 +138,8 @@ postgresql_ssl_ciphers:
138138 - " @STRENGTH"
139139postgresql_ssl_prefer_server_ciphers : on
140140postgresql_ssl_ecdh_curve : " prime256v1"
141+ postgresql_ssl_min_protocol_version : " TLSv1" # (>= 12)
142+ postgresql_ssl_max_protocol_version : " " # (>= 12)
141143postgresql_ssl_dh_params_file : " " # (>= 10)
142144postgresql_ssl_passphrase_command : " " # (>= 11)
143145postgresql_ssl_passphrase_command_supports_reload : off # (>= 11)
@@ -159,6 +161,7 @@ postgresql_krb_caseins_users: off
159161postgresql_tcp_keepalives_idle : 0
160162postgresql_tcp_keepalives_interval : 0
161163postgresql_tcp_keepalives_count : 0
164+ postgresql_tcp_user_timeout : 0 # (>= 12)
162165
163166
164167# ------------------------------------------------------------------------------
@@ -180,6 +183,8 @@ postgresql_maintenance_work_mem: 16MB # min 1MB
180183postgresql_replacement_sort_tuples : 150000 # (>= 9.6) limits use of replacement selection sort
181184postgresql_autovacuum_work_mem : -1 # min 1MB, or -1 to use maintenance_work_mem
182185postgresql_max_stack_depth : 2MB # min 100kB
186+ postgresql_shared_memory_type : " mmap" # (>= 12)
187+
183188postgresql_dynamic_shared_memory_type : " posix" # the default is the first option
184189 # supported by the operating system:
185190 # posix
@@ -263,6 +268,8 @@ postgresql_wal_sync_method: "fsync"
263268postgresql_full_page_writes : on
264269postgresql_wal_compression : off # (>= 9.5)
265270postgresql_wal_log_hints : off # also do full page writes of non-critical updates
271+ postgresql_wal_init_zero : on # zero-fill new WAL files
272+ postgresql_wal_recycle : on # recycle WAL files
266273
267274postgresql_wal_buffers : -1 # min 32kB, -1 sets based on shared_buffers
268275postgresql_wal_writer_delay : 200ms # 1-10000 milliseconds
@@ -297,6 +304,23 @@ postgresql_archive_command: ""
297304# force a logfile segment switch after this
298305postgresql_archive_timeout : 0
299306
307+ # - Archive Recovery -
308+
309+ postgresql_restore_command : " " # (>= 12)
310+ postgresql_archive_cleanup_command : " " # (>= 12)
311+ postgresql_recovery_end_command : " " # (>= 12)
312+ postgresql_recovery_target : " " # (>= 12)
313+ postgresql_recovery_target_name : " " # (>= 12)
314+ postgresql_recovery_target_time : " " # (>= 12)
315+ postgresql_recovery_target_xid : " " # (>= 12)
316+ postgresql_recovery_target_lsn : " " # (>= 12)
317+ postgresql_recovery_target_inclusive : " " # (>= 12)
318+ postgresql_recovery_target_timeline : " latest" # (>= 12)
319+ postgresql_recovery_target_action : " pause" # (>= 12)
320+ postgresql_primary_conninfo : " " # (>= 12)
321+ postgresql_primary_slot_name : " " # (>= 12)
322+ postgresql_promote_trigger_file : " " # (>= 12)
323+ postgresql_recovery_min_apply_delay : 0 # (>= 12)
300324
301325# ------------------------------------------------------------------------------
302326# REPLICATION
@@ -419,7 +443,8 @@ postgresql_cursor_tuple_fraction: 0.1 # range 0.0-1.0
419443postgresql_from_collapse_limit : 8
420444postgresql_join_collapse_limit : 8 # 1 disables collapsing of explicit
421445postgresql_force_parallel_mode : off # on, off, regress (>= 9.6)
422- postgresql_jit : off # (>= 11)
446+ postgresql_jit : on # (>= 11: off, 12: on)
447+ postgresql_plan_cache_mode : " auto" # (>= 12)
423448
424449
425450# ------------------------------------------------------------------------------
@@ -509,6 +534,7 @@ postgresql_log_min_error_statement: "error"
509534# -1 is disabled, 0 logs all statements and their durations, > 0 logs only
510535# statements running at least this number of milliseconds
511536postgresql_log_min_duration_statement : -1
537+ postgresql_log_transaction_sample_rate : 0.0 # (>= 12)
512538
513539
514540# - What to Log -
@@ -605,7 +631,7 @@ postgresql_autovacuum_freeze_max_age: 200000000
605631# maximum Multixact age before forced vacuum (>= 9.3)
606632postgresql_autovacuum_multixact_freeze_max_age : 400000000
607633# default vacuum cost delay for autovacuum, in milliseconds
608- postgresql_autovacuum_vacuum_cost_delay : 20ms
634+ postgresql_autovacuum_vacuum_cost_delay : 2ms # (<= 11: 20ms, >=12 2ms)
609635# default vacuum cost limit for autovacuum,
610636postgresql_autovacuum_vacuum_cost_limit : -1
611637
@@ -621,6 +647,7 @@ postgresql_search_path: # schema names
621647 - " public"
622648postgresql_default_tablespace : " " # a tablespace name, "" uses the default
623649postgresql_temp_tablespaces : [] # a list of tablespace names
650+ postgresql_default_table_access_method : " heap"
624651
625652postgresql_check_function_bodies : on
626653postgresql_default_transaction_isolation : " read committed"
0 commit comments