Re: [PATCH] Add SIGCHLD catch to psql - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: [PATCH] Add SIGCHLD catch to psql
Date
Msg-id 20100516160415.GD21875@tamriel.snowman.net
Whole thread Raw
In response to Re: [PATCH] Add SIGCHLD catch to psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] Add SIGCHLD catch to psql
List pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> A saner
> approach, which would also help for other corner cases such as
> out-of-disk-space, would be to check for write failures on the output
> file and abandon the query if any occur.

I had considered this, but I'm not sure we really need to catch *every*
write failure.  Perhaps just catching if the '\n' at the end of a row
fails to be written out would be sufficient?  Then turning around and
setting cancel_query might be enough..  I'll write that up and test if
it works.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Performance problem in textanycat/anytextcat
Next
From: Simon Riggs
Date:
Subject: Re: Keepalive for max_standby_delay