Re: Client failure allows backed to continue - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Client failure allows backed to continue
Date
Msg-id 10076.1043724705@sss.pgh.pa.us
Whole thread Raw
In response to Client failure allows backed to continue  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Client failure allows backed to continue  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> As part of the training class I did, some people tested what happens
> when the client allocates tons of memory to store a result and aborts.

> What we found was that though elog was properly called:

>     elog(COMMERROR, "pq_recvbuf: recv() failed: %m");

> (I think that was the message.)  the backend did not exit and kept
> eating CPU. I think the problem is that the elog code only exits on
> ERROR, not COMMERROR.  Is there some way to fix this?

There's been talk of setting the QueryCancel flag after detecting a
client communication failure ... but no one has ever done the legwork
to see if that works nicely, or what downsides it might have.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: IPv6 patch
Next
From: Bruce Momjian
Date:
Subject: Re: Client failure allows backed to continue