pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Willy-Bas Loos <willybas@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: tcp keepalives not sent during long query
Date: Wed, 14 Dec 2022 12:38:24 -0500
Message-ID: <2707299.1671039504@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHnozTitEe9Zm6xizq6KyWCUYbtH2oUZDeFVbpXmK=Lm_aY6Zg@mail.gmail.com>
References: <CAHnozTjKVdc1yHsAaboLR=3hT32sLTO+jQQzhgL3siF4XqXf+g@mail.gmail.com>
	<c5ab4fc032e99d6aa8a982adc77c245fbd5a9ccc.camel@cybertec.at>
	<CAHnozTitEe9Zm6xizq6KyWCUYbtH2oUZDeFVbpXmK=Lm_aY6Zg@mail.gmail.com>

Willy-Bas Loos <willybas@gmail.com> writes:
> Thanks for your answer. I was afraid someone would say that...
> I was hoping that the keepalives would be more of a matter of cooperation
> between postgres and the OS.

No, we just apply the setting to the open socket and trust the OS
to do it.

Are you quite certain that you applied the configuration change to
your new installation?

It'd be worth doing

show tcp_keepalives_idle;

in one of the sessions where you are having trouble.  And maybe
check the other keepalives settings too?

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <2707299.1671039504@sss.pgh.pa.us>
Permalink:  ../2707299.1671039504@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2707299.1671039504@sss.pgh.pa.us

 · 

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 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: tgl@sss.pgh.pa.us, willybas@gmail.com, laurenz.albe@cybertec.at
  Subject: Re: tcp keepalives not sent during long query
  In-Reply-To: <2707299.1671039504@sss.pgh.pa.us>
  References: <CAHnozTjKVdc1yHsAaboLR=3hT32sLTO+jQQzhgL3siF4XqXf+g@mail.gmail.com> <c5ab4fc032e99d6aa8a982adc77c245fbd5a9ccc.camel@cybertec.at> <CAHnozTitEe9Zm6xizq6KyWCUYbtH2oUZDeFVbpXmK=Lm_aY6Zg@mail.gmail.com> <2707299.1671039504@sss.pgh.pa.us>

* 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