]> git.openstreetmap.org Git - chef.git/commitdiff
Disable max_replication_slots on old versions of Postgres
authorTom Hughes <tom@compton.nu>
Wed, 2 Dec 2020 20:17:36 +0000 (20:17 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 2 Dec 2020 20:17:56 +0000 (20:17 +0000)
cookbooks/postgresql/templates/default/postgresql.conf.erb

index 0096c2bf2ad33a3295e153f52d34654cb8b8f664..e2892f68a888d04cf6ae857d181528787564ca05 100644 (file)
@@ -86,7 +86,9 @@ archive_command = '<%= @settings[:archive_command] || @defaults[:archive_command
 # - Sending Server(s) -
 
 max_wal_senders = <%= @settings[:max_wal_senders] || @defaults[:max_wal_senders] %>
+<% if @version.to_f >= 9.4 -%>
 max_replication_slots = <%= @settings[:max_replication_slots] || @defaults[:max_replication_slots] %>
+<% end -%>
 
 # - Standby Servers -