Re: Keepalive

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rui DeSousa <rui(dot)desousa(at)icloud(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Keepalive
Date: 2024-06-14 15:28:33
Message-ID: 2300378.1718378913@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Rui DeSousa <rui(dot)desousa(at)icloud(dot)com> writes:
> 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.

Really?

I would expect the query to keep running until the backend tries to
perform some I/O to the client. How quickly that happens would depend
a great deal on the details of the query, but not on which OS you're
running on.

regards, tom lane

In response to

  • Keepalive at 2024-06-14 15:22:06 from Rui DeSousa

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Hoover 2024-06-14 16:52:41 Outage caused by query in IPC:MessageQueueReceive wait????
Previous Message Rui DeSousa 2024-06-14 15:22:06 Keepalive