From 5121bff3c0b27681202cf340dbdeee70d61101eb Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 4 Apr 2024 01:17:06 +0000 Subject: [PATCH] postgresql: Drop lowered max_wal_senders value. This was originally added in a PostgreSQL 9.5 configuration, where the default is 0, meaning replication is disabled[^1]. In PostgreSQL 10 and above, the default is 10[^2], and there is no reason to lower it from that value. [^1]: https://www.postgresql.org/docs/9.5/runtime-config-replication.html [^2]: https://www.postgresql.org/docs/10/runtime-config-replication.html#RUNTIME-CONFIG-REPLICATION-SENDER --- .../zulip/templates/postgresql/12/postgresql.conf.template.erb | 1 - .../zulip/templates/postgresql/13/postgresql.conf.template.erb | 1 - .../zulip/templates/postgresql/14/postgresql.conf.template.erb | 1 - 3 files changed, 3 deletions(-) diff --git a/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb index b9e8caa567..67c861248d 100644 --- a/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb +++ b/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb @@ -789,7 +789,6 @@ listen_addresses = <%= @listen_addresses %> <% if @s3_backups_bucket != '' -%> # Streaming backups and replication -max_wal_senders = 5 archive_mode = on archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p' restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"' diff --git a/puppet/zulip/templates/postgresql/13/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/13/postgresql.conf.template.erb index 97e230adde..111eabb1eb 100644 --- a/puppet/zulip/templates/postgresql/13/postgresql.conf.template.erb +++ b/puppet/zulip/templates/postgresql/13/postgresql.conf.template.erb @@ -820,7 +820,6 @@ listen_addresses = <%= @listen_addresses %> <% if @s3_backups_bucket != '' -%> # Streaming backups and replication -max_wal_senders = 5 archive_mode = on archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p' restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"' diff --git a/puppet/zulip/templates/postgresql/14/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/14/postgresql.conf.template.erb index da8e54c1f5..cf3d7ff6c1 100644 --- a/puppet/zulip/templates/postgresql/14/postgresql.conf.template.erb +++ b/puppet/zulip/templates/postgresql/14/postgresql.conf.template.erb @@ -841,7 +841,6 @@ listen_addresses = <%= @listen_addresses %> <% if @s3_backups_bucket != '' -%> # Streaming backups and replication -max_wal_senders = 5 archive_mode = on archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p' restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"'