Re: [PATCH] Add SIGCHLD catch to psql

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: [PATCH] Add SIGCHLD catch to psql
Дата
Msg-id 20100516160415.GD21875@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: [PATCH] Add SIGCHLD catch to psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] Add SIGCHLD catch to psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Performance problem in textanycat/anytextcat
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Keepalive for max_standby_delay