Re: innocuous: pgbench does FD_ISSET on invalid socket

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: innocuous: pgbench does FD_ISSET on invalid socket
Дата
Msg-id CAB7nPqS6KLfzQr4Tb55=Bjz=bMCof4wnnzc3eWf4LszNDrz52g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: innocuous: pgbench does FD_ISSET on invalid socket  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Tue, Feb 16, 2016 at 8:47 AM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Michael Paquier wrote:
>
>> Different issues in the same area:
>> 1) In vacuumdb.c, init_slot() does not check for the return value of PQsocket():
>> slot->sock = PQsocket(conn);
>> 2) In isolationtester.c, try_complete_step() should do the same.
>> 3) In pg_recvlogical.c for StreamLogicalLog() I am spotting the same problem.
>> I guess those ones should be fixed as well, no?
>
> Hmm, yeah, perhaps it's worth closing these too.

Do you think that it would be better starting a new thread? The only
difficulty of this patch is to be sure that each error handling is
done correctly for each one of those frontend modules.
-- 
Michael



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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: Declarative partitioning
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: xlc atomics