Re: beta3 & the open items list - Mailing list pgsql-hackers

From Tom Lane
Subject Re: beta3 & the open items list
Date
Msg-id 10247.1276974823@sss.pgh.pa.us
Whole thread Raw
In response to Re: beta3 & the open items list  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: beta3 & the open items list  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
Re: beta3 & the open items list  (Florian Pflug <fgp@phlo.org>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Right now, if the SR master reboots unexpectedly (say, power plug pull
> and restart), the slave never notices.  It just sits there forever
> waiting for the next byte of data from the master to arrive (which it
> never will).

This is nonsense --- the slave's kernel *will* eventually notice that
the TCP connection is dead, and tell walreceiver so.  I don't doubt
that the standard TCP timeout is longer than people want to wait for
that, but claiming that it will never happen is simply wrong.

I think that enabling slave-side TCP keepalives and control of the
keepalive timeout parameters is probably sufficient for 9.0 here.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: extensible enum types
Next
From: Andres Freund
Date:
Subject: Re: beta3 & the open items list