postgresql: checkpoint-segments has been removed in 9.5
[chef.git] / 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 -
 
+<% if @version.to_f < 9.5 %>
 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] %>