Re: [PATCH] Add SIGCHLD catch to psql

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: [PATCH] Add SIGCHLD catch to psql
Дата
Msg-id 20100517161510.GF21875@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:
> If you're combining this with the FETCH_COUNT logic then it seems like
> it'd be sufficient to check ferror(fout) once per fetch chunk, and just
> fall out of that loop then.  I don't want psql issuing query cancels
> on its own authority, either.

Attached is a patch that just checks the result from the existing
fflush() inside the FETCH_COUNT loop and drops out of that loop if we
get an error from it.

    Thanks!

        Stephen

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Selena Deckelmann
Дата:
Сообщение: Re: Lightning Talks for PgCon! Submit yours today.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: release notes