]> git.openstreetmap.org Git - chef.git/commitdiff
Update for Postgres 9.3 support
authorTom Hughes <tom@compton.nu>
Tue, 3 Jun 2014 18:36:28 +0000 (19:36 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 3 Jun 2014 18:36:28 +0000 (19:36 +0100)
cookbooks/postgresql/templates/default/postgresql.conf.erb

index 42e6f88769f624c9b05b126a861f5fa3bf5537e7..28cdcaafb27794672f95481db66332b845c31993 100644 (file)
@@ -20,7 +20,11 @@ listen_addresses = '<%= @settings[:listen_addresses] || @defaults[:listen_addres
 <% end -%>
 port = <%= @settings[:port] || @defaults[:port] %>
 max_connections = <%= @settings[:max_connections] || @defaults[:max_connections] %>
+<% if @version.to_f >= 9.3 %>
+unix_socket_directories = '/var/run/postgresql'
+<% else -%>
 unix_socket_directory = '/var/run/postgresql'
+<% end -%>
 
 # - Security and Authentication -