Re: psql hanging - Mailing list pgsql-general

From Trevor Talbot
Subject Re: psql hanging
Date
Msg-id 90bce5730709051748r6ff4ab67r4d3958415ae94702@mail.gmail.com
Whole thread Raw
In response to Re: psql hanging  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
On 9/5/07, Martijn van Oosterhout <kleptog@svana.org> wrote:
> On Wed, Sep 05, 2007 at 10:44:20AM -0700, Trevor Talbot wrote:
> > Unless psql is turning on keepalive or similar, or the OS is forcing
> > it on by default, there are no timeouts for idle TCP connections.  If
> > the command was transported to the server successfully and psql was
> > just waiting for a result, the connection is idle and nothing will
> > happen if the server end suddenly goes away.
>
> Well, any TCP implementation has to support keepalives and generally

Er, has to?  Unless there's a new RFC I haven't seen lately, keepalive
is purely a vendor behavior extension.  It's also known that some
older stacks interpreted the TCP spec slightly differently and don't
correctly respond to keepalive packets.

Keepalive is definitely useful, but you can't assume anything about it
being present, enabled, or working by default.  It's only seen
mainstream use in recent years.

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: SQL for Deleting all duplicate entries
Next
From: "Filip Rembiałkowski"
Date:
Subject: Re: Controlling locale and impact on LIKE statements