Re: tcp keepalives not sent during long query

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: tcp keepalives not sent during long query
Дата
Msg-id 28b6e16270ac2e2a3e0343d6faa9c5ace97f37b3.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: tcp keepalives not sent during long query  (Willy-Bas Loos <willybas@gmail.com>)
Ответы Re: tcp keepalives not sent during long query  (Willy-Bas Loos <willybas@gmail.com>)
Список pgsql-general
On Thu, 2022-12-15 at 08:31 +0100, Willy-Bas Loos wrote:
> On Wed, Dec 14, 2022 at 6:38 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > It'd be worth doing
> > 
> > show tcp_keepalives_idle;
> 
> Wow, you're right! It's in the postgresql.conf but it isn't set when I reload the server
> A restart also doesn't do it and even doing SET tcp_keepalives_idle=120; doesn't work.
> It gives me a confirmation, but then when I SHOW the value, it gives me 0.
> 
> wbloos=# set tcp_keepalives_idle=120;
> SET
> wbloos=# show tcp_keepalives_idle;
>  tcp_keepalives_idle 
> ---------------------
>  0
> (1 row)

One good way to debug this is

  SELECT setting, source, sourcefile, sourceline
  FROM pg_settings
  WHERE name = 'tcp_keepalives_idle';

That will tell you from where you get the parameter value.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



В списке pgsql-general по дате отправления:

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: Re: tcp keepalives not sent during long query
Следующее
От: Willy-Bas Loos
Дата:
Сообщение: Re: tcp keepalives not sent during long query