Re: tcp keepalives not sent during long query

From: Willy-Bas Loos <willybas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: tcp keepalives not sent during long query
Date: 2022-12-15 16:20:58
Message-ID: CAHnozThEP625SR35KWkaPBgZ1D7=ROTpOu9Ooq-X-sAN=w7jEQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Willy-Bas Loos <willybas(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message vignesh C 2022-12-15 16:24:44 Re: Support logical replication of DDLs
Previous Message Tom Lane 2022-12-15 14:48:15 Re: tcp keepalives not sent during long query