Re: [PATCH] Add SIGCHLD catch to psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Add SIGCHLD catch to psql
Дата
Msg-id 7304.1275077058@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Add SIGCHLD catch to psql  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> I thought it might be about that simple once you went at it the right
>> way ;-).  However, I'd suggest checking ferror(pset.queryFout) as well
>> as the fflush result.

> Sure, I can add the ferror() check.  Patch attached.

This seemed pretty small and uncontroversial, so I went ahead and
committed it for 9.0.  I rearranged the order of operations a bit to
make it seem more coherent, and also added an initial clearerr() just
to forestall problems if stdout had the error flag set for some reason.
        regards, tom lane


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

Предыдущее
От: Jan Urbański
Дата:
Сообщение: Re: tsvector pg_stats seems quite a bit off.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: How to pass around collation information