public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Abraham, Danny <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: Can't change tcp_keepalives_idle
Date: Sun, 4 Aug 2024 08:13:10 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <SJ2PR02MB97060CFEDBDE9FC11F1844358EBD2@SJ2PR02MB9706.namprd02.prod.outlook.com>
References: <SJ2PR02MB97060CFEDBDE9FC11F1844358EBD2@SJ2PR02MB9706.namprd02.prod.outlook.com>

On 8/4/24 04:16, Abraham, Danny wrote:
> Hi,
> 
> Change tcp_keepalives_idle in postgresql.conf from 0 to 300 , then pg_ctl reload but it stays with the old 0 value.
> Tried restart and it did not work. PG Log says it was changed.
> Reset_cal marked OK, but no real change ( ins how)
> 
> -[ RECORD 1 ]---+-----------------------------------------------------
> name            | tcp_keepalives_idle
> setting         | 0
> unit            | s
> category        | Connections and Authentication / Connection Settings
> short_desc      | Time between issuing TCP keepalives.
> extra_desc      | A value of 0 uses the system default.
> context         | user
> vartype         | integer
> source          | session
> min_val         | 0
> max_val         | 2147483647
> enumvals        |
> boot_val        | 0
> reset_val       | 1800
> sourcefile      |
> sourceline      |
> pending_restart | f


source          | session

Something is setting the value for the session.

Have you used

https://www.postgresql.org/docs/current/sql-alterrole.html

or

https://www.postgresql.org/docs/current/sql-alterdatabase.html

to SET tcp_keepalives_idle?

Doing:

select * from pg_db_role_setting ;

will help answer the above.

> 
> Thanks
> 
> Danny
> 
> 

-- 
Adrian Klaver
[email protected]







view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Can't change tcp_keepalives_idle
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox