From 9bac00de82550394ed4590d00ac706b79ac17ffa Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Thu, 4 Dec 2025 17:56:30 +0100 Subject: [PATCH 1/3] add variable for idle session timeout --- manifests/params.pp | 2 ++ templates/postgresql.conf.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 7532f3f..67bdf80 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -24,6 +24,7 @@ # @param [Boolean] pl_manage_extensions whether to manage extensions # @param [Boolean] pl_use_exporter whether to use the postgresql-exporter # @param [String] pl_install_dir the path for the postgres-exporter files +# @param [String] pl_idle_timeout idle_in_transaction_session_timeout ############################################################################## class postgresql_cd::params ( @@ -45,6 +46,7 @@ class postgresql_cd::params ( String $pl_listen_address = '*', String $pl_listen_port = '5432', String $pl_max_conn = '100', + String $pl_idle_timeout = '60000', Boolean $pl_ssl_enabled = false, String $pl_server_crt = 'server.crt', String $pl_server_key = 'server.key', diff --git a/templates/postgresql.conf.erb b/templates/postgresql.conf.erb index e4567a9..494001e 100644 --- a/templates/postgresql.conf.erb +++ b/templates/postgresql.conf.erb @@ -674,7 +674,7 @@ 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 = 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 From 6acaa6d3b253aab8492c1a2c805ce00e9bfdca30 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Thu, 4 Dec 2025 18:01:19 +0100 Subject: [PATCH 2/3] 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 From 86e3636d57463334499326dbb8ddd1b792a4df31 Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Thu, 4 Dec 2025 18:02:43 +0100 Subject: [PATCH 3/3] Recommit for updates in build 57 --- .../postgresql_cd_3A_3Aparams.html | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html index b65801a..2cead36 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html @@ -474,6 +474,24 @@ —

the path for the postgres-exporter files

+
+ + + +
  • + + pl_idle_timeout + + + (String) + + + (defaults to: '60000') + + + — +
    +

    idle_in_transaction_session_timeout

  • @@ -489,7 +507,6 @@
     
     
    -28
     29
     30
     31
    @@ -540,10 +557,12 @@
     76
     77
     78
    -79
    +79 +80 +81 -
    # File 'manifests/params.pp', line 28
    +        
    # File 'manifests/params.pp', line 29
     
     class postgresql_cd::params (
     
    @@ -565,6 +584,7 @@ class postgresql_cd::params (
       String $pl_listen_address       = '*',
       String $pl_listen_port          = '5432',
       String $pl_max_conn             = '100',
    +  String $pl_idle_timeout         = '60000',
       Boolean $pl_ssl_enabled         = false,
       String $pl_server_crt           = 'server.crt',
       String $pl_server_key           = 'server.key',