FIX: remove db_max_wal_senders and db_wal_level entirely

FIX: remove db_max_wal_senders and db_wal_level entirely

  • I had previously removed the db_wal_level and db_max_wal_senders but foolishly assumed there was some sort of default or they would only get replaced if defined
diff --git a/templates/postgres.10.template.yml b/templates/postgres.10.template.yml
index c60350c..dead629 100644
--- a/templates/postgres.10.template.yml
+++ b/templates/postgres.10.template.yml
@@ -94,16 +94,6 @@ run:
 
   - replace:
       filename: "/etc/postgresql/10/main/postgresql.conf"
-      from: /#?max_wal_senders *=.*/
-      to: "max_wal_senders = $db_max_wal_senders"
-
-  - replace:
-      filename: "/etc/postgresql/10/main/postgresql.conf"
-      from: /#?wal_level *=.*/
-      to: "wal_level = $db_wal_level"
-
-  - replace:
-      filename: "/etc/postgresql/10/main/postgresql.conf"
       from: /#?checkpoint_segments *=.*/
       to: "checkpoint_segments = $db_checkpoint_segments"
 
diff --git a/templates/postgres.12.template.yml b/templates/postgres.12.template.yml
index b4b76f5..7a29faa 100644
--- a/templates/postgres.12.template.yml
+++ b/templates/postgres.12.template.yml
@@ -91,16 +91,6 @@ run:
 
   - replace:
       filename: "/etc/postgresql/12/main/postgresql.conf"
-      from: /#?max_wal_senders *=.*/
-      to: "max_wal_senders = $db_max_wal_senders"
-
-  - replace:
-      filename: "/etc/postgresql/12/main/postgresql.conf"
-      from: /#?wal_level *=.*/
-      to: "wal_level = $db_wal_level"
-
-  - replace:
-      filename: "/etc/postgresql/12/main/postgresql.conf"
       from: /#?checkpoint_segments *=.*/
       to: "checkpoint_segments = $db_checkpoint_segments"
 
diff --git a/templates/postgres.9.5.template.yml b/templates/postgres.9.5.template.yml
index 9075001..febcc2f 100644
--- a/templates/postgres.9.5.template.yml
+++ b/templates/postgres.9.5.template.yml
@@ -5,8 +5,6 @@ params:
   db_default_text_search_config: "pg_catalog.english"
   db_name: discourse
   db_user: discourse
-  db_wal_level: minimal
-  db_max_wal_senders: 0
   db_checkpoint_segments: 6
   db_logging_collector: off
   db_log_min_duration_statement: 100
@@ -96,16 +94,6 @@ run:
 
   - replace:
       filename: "/etc/postgresql/9.5/main/postgresql.conf"
-      from: /#?max_wal_senders *=.*/
-      to: "max_wal_senders = $db_max_wal_senders"
-
-  - replace:
-      filename: "/etc/postgresql/9.5/main/postgresql.conf"
-      from: /#?wal_level *=.*/
-      to: "wal_level = $db_wal_level"
-
-  - replace:
-      filename: "/etc/postgresql/9.5/main/postgresql.conf"
       from: /#?checkpoint_segments *=.*/
       to: "checkpoint_segments = $db_checkpoint_segments"
 
diff --git a/templates/postgres.template.yml b/templates/postgres.template.yml
index afccf3f..2ccecde 100644
--- a/templates/postgres.template.yml
+++ b/templates/postgres.template.yml
@@ -168,16 +168,6 @@ run:
 
   - replace:
       filename: "/etc/postgresql/12/main/postgresql.conf"
-      from: /#?max_wal_senders *=.*/
-      to: "max_wal_senders = $db_max_wal_senders"
-
-  - replace:
-      filename: "/etc/postgresql/12/main/postgresql.conf"
-      from: /#?wal_level *=.*/
-      to: "wal_level = $db_wal_level"
-
-  - replace:
-      filename: "/etc/postgresql/12/main/postgresql.conf"
       from: /#?checkpoint_segments *=.*/
       to: "checkpoint_segments = $db_checkpoint_segments"
 

GitHub sha: 4a7fa7ab