From 8f474e1ddf42e74422668efc791026fd7e8ee3fe Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Jun 2014 19:36:28 +0100 Subject: [PATCH 1/1] Update for Postgres 9.3 support --- cookbooks/postgresql/templates/default/postgresql.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/postgresql/templates/default/postgresql.conf.erb b/cookbooks/postgresql/templates/default/postgresql.conf.erb index 42e6f8876..28cdcaafb 100644 --- a/cookbooks/postgresql/templates/default/postgresql.conf.erb +++ b/cookbooks/postgresql/templates/default/postgresql.conf.erb @@ -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 - -- 2.43.2