postgresql: checkpoint-segments has been removed in 9.5
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 4 Aug 2016 20:32:02 +0000 (22:32 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 4 Aug 2016 20:32:02 +0000 (22:32 +0200)
cookbooks/postgresql/templates/default/postgresql.conf.erb

index 28cdcaafb27794672f95481db66332b845c31993..754131e73ea1ba68ff665f6d818b2f70dba2f4c0 100644 (file)
@@ -58,7 +58,9 @@ commit_delay = <%= @settings[:commit_delay] || @defaults[:commit_delay] %>
 
 # - Checkpoints -
 
 
 # - Checkpoints -
 
+<% if @version.to_f < 9.5 %>
 checkpoint_segments = <%= @settings[:checkpoint_segments] || @defaults[:checkpoint_segments] %>
 checkpoint_segments = <%= @settings[:checkpoint_segments] || @defaults[:checkpoint_segments] %>
+<% end -%>
 checkpoint_timeout = <%= @settings[:checkpoint_timeout] || @defaults[:checkpoint_timeout] %>
 checkpoint_completion_target = <%= @settings[:checkpoint_completion_target] || @defaults[:checkpoint_completion_target] %>
 
 checkpoint_timeout = <%= @settings[:checkpoint_timeout] || @defaults[:checkpoint_timeout] %>
 checkpoint_completion_target = <%= @settings[:checkpoint_completion_target] || @defaults[:checkpoint_completion_target] %>