]> git.openstreetmap.org Git - chef.git/commitdiff
Allow wal_keep_size to be configured
authorTom Hughes <tom@compton.nu>
Thu, 24 Aug 2023 19:41:27 +0000 (20:41 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 24 Aug 2023 19:41:27 +0000 (20:41 +0100)
cookbooks/postgresql/attributes/default.rb
cookbooks/postgresql/templates/default/postgresql.conf.erb

index 1123f4f1a98a1e422dd3cdc2043d57657a488fe9..878407aecf854432f264f63334c6689a7a8c074e 100644 (file)
@@ -26,6 +26,7 @@ default[:postgresql][:settings][:defaults][:min_wal_size] = "80MB"
 default[:postgresql][:settings][:defaults][:archive_mode] = "off"
 default[:postgresql][:settings][:defaults][:max_wal_senders] = "10"
 default[:postgresql][:settings][:defaults][:max_replication_slots] = "10"
+default[:postgresql][:settings][:defaults][:wal_keep_size] = "0"
 default[:postgresql][:settings][:defaults][:hot_standby] = "on"
 default[:postgresql][:settings][:defaults][:hot_standby_feedback] = "off"
 default[:postgresql][:settings][:defaults][:seq_page_cost] = "1.0"
index 9fba27e6ee43291d3d6064def7f4a29e3b301e14..b43afa7834a167dd4cf31ae4eab4c70a5ef7ba2d 100644 (file)
@@ -89,6 +89,7 @@ restore_command = '<%= @settings[:restore_command] || @defaults[:restore_command
 
 max_wal_senders = <%= @settings[:max_wal_senders] || @defaults[:max_wal_senders] %>
 max_replication_slots = <%= @settings[:max_replication_slots] || @defaults[:max_replication_slots] %>
+wal_keep_size = <%= @settings[:wal_keep_size] || @defaults[:wal_keep_size] %>
 
 # - Standby Servers -