From 6acaa6d3b253aab8492c1a2c805ce00e9bfdca30 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Thu, 4 Dec 2025 18:01:19 +0100 Subject: [PATCH] add variable for idle session timeout --- templates/postgresql.conf.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/postgresql.conf.erb b/templates/postgresql.conf.erb index 494001e..b6952da 100644 --- a/templates/postgresql.conf.erb +++ b/templates/postgresql.conf.erb @@ -116,6 +116,8 @@ ssl_key_file = '<%= @pl_data_dir %><%= @pl_server_key -%>' ssl = off <% end -%> +idle_in_transaction_session_timeout = <%= @pl_idle_timeout %> + #ssl_crl_file = '' #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers #ssl_prefer_server_ciphers = on @@ -674,7 +676,6 @@ log_timezone = 'Etc/UTC' #session_replication_role = 'origin' #statement_timeout = 0 # in milliseconds, 0 is disabled #lock_timeout = 0 # in milliseconds, 0 is disabled -idle_in_transaction_session_timeout = <%= @pl_idle_timeout %> #vacuum_freeze_min_age = 50000000 #vacuum_freeze_table_age = 150000000 #vacuum_multixact_freeze_min_age = 5000000