FIX: remove db_max_wal_senders and db_wal_level entirely
authorMichael Brown <supermathie@gmail.com>
Wed, 15 Jul 2020 17:29:26 +0000 (13:29 -0400)
committerMichael Brown <supermathie@gmail.com>
Wed, 15 Jul 2020 17:29:26 +0000 (13:29 -0400)
* 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

templates/postgres.10.template.yml
templates/postgres.12.template.yml
templates/postgres.9.5.template.yml
templates/postgres.template.yml

index c60350ca3312ae23bb32f02e37f93a1fb8a8b29c..dead6295211ffb3c53024a213e93ed1fa0a83f9f 100644 (file)
@@ -92,16 +92,6 @@ run:
       cmd:
         - install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
 
-  - 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 *=.*/
index b4b76f5e11f79c75a86fc8c67a654d4cef16a499..7a29faaa09cfacd44520bfc47ecaf02be57fa16d 100644 (file)
@@ -89,16 +89,6 @@ run:
       cmd:
         - install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
 
-  - 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 *=.*/
index 90750017b6e04488811c42530f811d3659318bff..febcc2fabe95ad19f5874f53651518ab08073571 100644 (file)
@@ -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
@@ -94,16 +92,6 @@ run:
       cmd:
         - install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
 
-  - 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 *=.*/
index afccf3fd78099fb7abd27ff14bf0ace16fab229c..2ccecde6df7fd057b51cdbd7e77714d370faf09b 100644 (file)
@@ -166,16 +166,6 @@ run:
       cmd:
         - install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
 
-  - 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 *=.*/