From 3a76f4474de3eb520efdfe4b41918bce2d9576ff Mon Sep 17 00:00:00 2001 From: Paul B Date: Mon, 11 May 2020 15:10:33 +0200 Subject: parameters: allow wal_level customisation This commit allows customisation of the `wal_level` PG config on all supported PG versions --- templates/postgresql.10.conf.j2 | 2 +- templates/postgresql.11.conf.j2 | 2 +- templates/postgresql.9.4.conf.j2 | 2 +- templates/postgresql.9.5.conf.j2 | 2 +- templates/postgresql.9.6.conf.j2 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/postgresql.10.conf.j2 b/templates/postgresql.10.conf.j2 index b07b22b..8085034 100644 --- a/templates/postgresql.10.conf.j2 +++ b/templates/postgresql.10.conf.j2 @@ -184,7 +184,7 @@ bgwriter_delay = 2000ms # 10-10000ms between rounds # - Settings - -wal_level = logical # minimal, replica, or logical +wal_level = {{ postgres_wal_level }} # minimal, replica, or logical # (change requires restart) {% if postgres_fsync_enabled %} #fsync = on # flush data to disk for crash safety diff --git a/templates/postgresql.11.conf.j2 b/templates/postgresql.11.conf.j2 index 2c2ac1c..6acb50d 100644 --- a/templates/postgresql.11.conf.j2 +++ b/templates/postgresql.11.conf.j2 @@ -185,7 +185,7 @@ bgwriter_delay = 2000ms # 10-10000ms between rounds # - Settings - -wal_level = logical # minimal, replica, or logical +wal_level = {{ postgres_wal_level }} # minimal, replica, or logical # (change requires restart) {% if postgres_fsync_enabled %} #fsync = on # flush data to disk for crash safety diff --git a/templates/postgresql.9.4.conf.j2 b/templates/postgresql.9.4.conf.j2 index c251bfa..858ae3d 100644 --- a/templates/postgresql.9.4.conf.j2 +++ b/templates/postgresql.9.4.conf.j2 @@ -177,7 +177,7 @@ dynamic_shared_memory_type = posix # the default is the first option # - Settings - -wal_level = logical # minimal, archive, hot_standby, or logical +wal_level = {{ postgres_wal_level }} # minimal, archive, hot_standby, or logical # (change requires restart) {% if postgres_fsync_enabled %} diff --git a/templates/postgresql.9.5.conf.j2 b/templates/postgresql.9.5.conf.j2 index 5f666bf..a757382 100644 --- a/templates/postgresql.9.5.conf.j2 +++ b/templates/postgresql.9.5.conf.j2 @@ -177,7 +177,7 @@ bgwriter_delay = 2000ms # 10-10000ms between rounds # - Settings - -wal_level = logical # minimal, archive, hot_standby, or logical +wal_level = {{ postgres_wal_level }} # minimal, archive, hot_standby, or logical # (change requires restart) {% if postgres_fsync_enabled %} diff --git a/templates/postgresql.9.6.conf.j2 b/templates/postgresql.9.6.conf.j2 index 4c756f2..6a72631 100644 --- a/templates/postgresql.9.6.conf.j2 +++ b/templates/postgresql.9.6.conf.j2 @@ -185,7 +185,7 @@ bgwriter_delay = 2000ms # 10-10000ms between rounds # - Settings - -wal_level = logical # minimal, replica, or logical +wal_level = {{ postgres_wal_level }} # minimal, replica, or logical # (change requires restart) {% if postgres_fsync_enabled %} -- cgit v1.2.3