agora inbox for pgsql-admin@postgresql.org  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Rui DeSousa <rui.desousa@icloud.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Keepalive
Date: Fri, 14 Jun 2024 19:47:11 +0200
Message-ID: <e15acc58d2e0328f096a7d277ef862b5cc3cb271.camel@cybertec.at> (raw)
In-Reply-To: <161042FE-FC86-456B-A8E1-AED38AE01820@icloud.com>
References: <161042FE-FC86-456B-A8E1-AED38AE01820@icloud.com>

On Fri, 2024-06-14 at 11:22 -0400, Rui DeSousa wrote:
> I have a very long running query that is not being terminated after a keep alive timeout event.
> The situation is that the client drops from the network, the servers’ tcp/ip stack drops the
> connection, and the Postgres query continues to run without a network connection.  
> 
> The given system is running on Linux and I’m being told this is expected behavior; however,
> that is not has not been my experience.  My preferred platform to run Postgres on is FreeBSD
> and in cases like this the Postgres session is also terminated once the tcp/ip connection is
> dropped by the kernel.

That would surprise me.

There is the parameter "client_connection_check_interval" exactly for that.

Yours,
Laurenz Albe





view thread (8+ messages)  latest in thread

Message-ID: <e15acc58d2e0328f096a7d277ef862b5cc3cb271.camel@cybertec.at>
Permalink:  ../e15acc58d2e0328f096a7d277ef862b5cc3cb271.camel@cybertec.at/
Also on:    postgresql.org/message-id/e15acc58d2e0328f096a7d277ef862b5cc3cb271.camel@cybertec.at

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, rui.desousa@icloud.com
  Subject: Re: Keepalive
  In-Reply-To: <e15acc58d2e0328f096a7d277ef862b5cc3cb271.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox