Re: pgsql: libpq: Notice errors a backend may have sent just before dying.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: libpq: Notice errors a backend may have sent just before dying.
Дата
Msg-id 32700.1447338569@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: libpq: Notice errors a backend may have sent just before dying.  (Robert Haas <rhaas@postgresql.org>)
Ответы Re: pgsql: libpq: Notice errors a backend may have sent just before dying.
Список pgsql-committers
Robert Haas <rhaas@postgresql.org> writes:
> libpq: Notice errors a backend may have sent just before dying.
> At least since the introduction of Hot Standby, the backend has
> sometimes sent fatal errors even when no client query was in
> progress, assuming that the client would receive it.  However,
> pqHandleSendFailure was not in sync with this assumption, and
> only tries to catch notices and notifies.  Add a parseInput call
> to the loop there to fix.

Just for the record, this patch changes no behavior whatsoever.
It could only make a difference if the backend were still actively
sending data, which certainly isn't so in the case claimed by the
commit message.  Moreover, removing the comment that explains why
only NOTICE and NOTIFY messages will be eaten doesn't make it not so.

            regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: libpq: Notice errors a backend may have sent just before dying.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: libpq: Notice errors a backend may have sent just before dying.