1
1
# file: postgresql/defaults/main.yml
2
2
3
3
# Basic settings
4
- postgresql_version : 11
4
+ postgresql_version : 12
5
5
postgresql_version_terse : " {{ postgresql_version | replace('.', '') }}" # Short version of the postgresql_version, used in some path and filenames
6
6
postgresql_encoding : " UTF-8"
7
7
postgresql_data_checksums : false
@@ -138,6 +138,8 @@ postgresql_ssl_ciphers:
138
138
- " @STRENGTH"
139
139
postgresql_ssl_prefer_server_ciphers : on
140
140
postgresql_ssl_ecdh_curve : " prime256v1"
141
+ postgresql_ssl_min_protocol_version : " TLSv1" # (>= 12)
142
+ postgresql_ssl_max_protocol_version : " " # (>= 12)
141
143
postgresql_ssl_dh_params_file : " " # (>= 10)
142
144
postgresql_ssl_passphrase_command : " " # (>= 11)
143
145
postgresql_ssl_passphrase_command_supports_reload : off # (>= 11)
@@ -159,6 +161,7 @@ postgresql_krb_caseins_users: off
159
161
postgresql_tcp_keepalives_idle : 0
160
162
postgresql_tcp_keepalives_interval : 0
161
163
postgresql_tcp_keepalives_count : 0
164
+ postgresql_tcp_user_timeout : 0 # (>= 12)
162
165
163
166
164
167
# ------------------------------------------------------------------------------
@@ -180,6 +183,8 @@ postgresql_maintenance_work_mem: 16MB # min 1MB
180
183
postgresql_replacement_sort_tuples : 150000 # (>= 9.6) limits use of replacement selection sort
181
184
postgresql_autovacuum_work_mem : -1 # min 1MB, or -1 to use maintenance_work_mem
182
185
postgresql_max_stack_depth : 2MB # min 100kB
186
+ postgresql_shared_memory_type : " mmap" # (>= 12)
187
+
183
188
postgresql_dynamic_shared_memory_type : " posix" # the default is the first option
184
189
# supported by the operating system:
185
190
# posix
@@ -263,6 +268,8 @@ postgresql_wal_sync_method: "fsync"
263
268
postgresql_full_page_writes : on
264
269
postgresql_wal_compression : off # (>= 9.5)
265
270
postgresql_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
266
273
267
274
postgresql_wal_buffers : -1 # min 32kB, -1 sets based on shared_buffers
268
275
postgresql_wal_writer_delay : 200ms # 1-10000 milliseconds
@@ -297,6 +304,23 @@ postgresql_archive_command: ""
297
304
# force a logfile segment switch after this
298
305
postgresql_archive_timeout : 0
299
306
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)
300
324
301
325
# ------------------------------------------------------------------------------
302
326
# REPLICATION
@@ -419,7 +443,8 @@ postgresql_cursor_tuple_fraction: 0.1 # range 0.0-1.0
419
443
postgresql_from_collapse_limit : 8
420
444
postgresql_join_collapse_limit : 8 # 1 disables collapsing of explicit
421
445
postgresql_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)
423
448
424
449
425
450
# ------------------------------------------------------------------------------
@@ -509,6 +534,7 @@ postgresql_log_min_error_statement: "error"
509
534
# -1 is disabled, 0 logs all statements and their durations, > 0 logs only
510
535
# statements running at least this number of milliseconds
511
536
postgresql_log_min_duration_statement : -1
537
+ postgresql_log_transaction_sample_rate : 0.0 # (>= 12)
512
538
513
539
514
540
# - What to Log -
@@ -605,7 +631,7 @@ postgresql_autovacuum_freeze_max_age: 200000000
605
631
# maximum Multixact age before forced vacuum (>= 9.3)
606
632
postgresql_autovacuum_multixact_freeze_max_age : 400000000
607
633
# 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)
609
635
# default vacuum cost limit for autovacuum,
610
636
postgresql_autovacuum_vacuum_cost_limit : -1
611
637
@@ -621,6 +647,7 @@ postgresql_search_path: # schema names
621
647
- " public"
622
648
postgresql_default_tablespace : " " # a tablespace name, "" uses the default
623
649
postgresql_temp_tablespaces : [] # a list of tablespace names
650
+ postgresql_default_table_access_method : " heap"
624
651
625
652
postgresql_check_function_bodies : on
626
653
postgresql_default_transaction_isolation : " read committed"
0 commit comments