Markus Schaber <schabi(at)logix-tt(dot)com> writes:
> Tom Lane wrote:
>> I don't think it'd be a net win to add cycles to every query to check
>> the connection every so often.
> The SIGIO could set a flag variable via the interrupt handler,
SIGIO isn't portable (nowhere to be seen in Single Unix Spec), and where
it does exist, it seems to report I/O ready on *any* descriptor not only
the one you want. That would lead to a whole lot of useless interrupts
and status-checks.
regards, tom lane