From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Willy-Bas Loos <willybas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: tcp keepalives not sent during long query
Date: Thu, 15 Dec 2022 12:37:21 +0100
Message-ID: <28b6e16270ac2e2a3e0343d6faa9c5ace97f37b3.camel@cybertec.at> (raw)
In-Reply-To: <CAHnozTh=o-n0cgcgP7M8iyzTKPLJfhrPFr17XwE8RTyjymnEMA@mail.gmail.com>
References: <CAHnozTjKVdc1yHsAaboLR=3hT32sLTO+jQQzhgL3siF4XqXf+g@mail.gmail.com>
<c5ab4fc032e99d6aa8a982adc77c245fbd5a9ccc.camel@cybertec.at>
<CAHnozTitEe9Zm6xizq6KyWCUYbtH2oUZDeFVbpXmK=Lm_aY6Zg@mail.gmail.com>
<2707299.1671039504@sss.pgh.pa.us>
<CAHnozTh=o-n0cgcgP7M8iyzTKPLJfhrPFr17XwE8RTyjymnEMA@mail.gmail.com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, willybas@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: tcp keepalives not sent during long query
In-Reply-To: <28b6e16270ac2e2a3e0343d6faa9c5ace97f37b3.camel@cybertec.at>
References: <CAHnozTjKVdc1yHsAaboLR=3hT32sLTO+jQQzhgL3siF4XqXf+g@mail.gmail.com> <c5ab4fc032e99d6aa8a982adc77c245fbd5a9ccc.camel@cybertec.at> <CAHnozTitEe9Zm6xizq6KyWCUYbtH2oUZDeFVbpXmK=Lm_aY6Zg@mail.gmail.com> <2707299.1671039504@sss.pgh.pa.us> <CAHnozTh=o-n0cgcgP7M8iyzTKPLJfhrPFr17XwE8RTyjymnEMA@mail.gmail.com> <28b6e16270ac2e2a3e0343d6faa9c5ace97f37b3.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox