From eddf2911d4d9f29891f445436ee318d6d097b581 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 22 Jan 2023 10:30:41 +0000 Subject: [PATCH] Drop setting of stats_temp_directory for Postgres 15 --- cookbooks/postgresql/templates/default/postgresql.conf.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/postgresql/templates/default/postgresql.conf.erb b/cookbooks/postgresql/templates/default/postgresql.conf.erb index d75c2f427..f26c7120b 100644 --- a/cookbooks/postgresql/templates/default/postgresql.conf.erb +++ b/cookbooks/postgresql/templates/default/postgresql.conf.erb @@ -138,7 +138,9 @@ log_line_prefix = '%t ' # - Query/Index Statistics Collector - track_activity_query_size = <%= @settings[:track_activity_query_size] || @defaults[:track_activity_query_size] %> +<% if @version.to_f < 15 -%> stats_temp_directory = '/run/postgresql/<%= @version %>-main.pg_stat_tmp' +<% end -%> #------------------------------------------------------------------------------ # AUTOVACUUM PARAMETERS -- 2.39.5