Re: tcp keepalives not sent during long query - Mailing list pgsql-general

From Willy-Bas Loos
Subject Re: tcp keepalives not sent during long query
Date
Msg-id CAHnozThEP625SR35KWkaPBgZ1D7=ROTpOu9Ooq-X-sAN=w7jEQ@mail.gmail.com
Whole thread Raw
In response to Re: tcp keepalives not sent during long query  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Yes exactly, Geoff Winkless pointed that out too.
I thought I'd found a cause for the breaking connections, but I hadn't.
Thanks a lot for your help!


On Thu, Dec 15, 2022 at 3:48 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Willy-Bas Loos <willybas@gmail.com> writes:
> 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)

That's the behavior I'd expect on a local (Unix-socket) connection
... you sure you're doing this from one of the problematic clients?

                        regards, tom lane


--
Willy-Bas Loos

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: tcp keepalives not sent during long query
Next
From: Michel Pelletier
Date:
Subject: pg_dumpall renders ALTER TABLE for a view?