"Stephen R. van den Berg" <srb@cuci.nl> writes:
> Tom Lane wrote:
>> "Stephen R. van den Berg" <srb@cuci.nl> writes:
>>> What about simply closing the filedescriptor upon discovering a
>>> non-empty sendbuffer upon timeout/querycancel?
>> So in other words, convert any network glitch, no matter how small,
>> into an instant fatal error?
> The fact that a timeout or querycancel has taken place, indicates that
> this does *not* act on just any network glitch.
No, just any one that is unfortunate enough to occur at the moment of a
query timeout or cancel.
regards, tom lane