Re: BUG #5837: PQstatus() fails to report lost connection

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BUG #5837: PQstatus() fails to report lost connection
Дата
Msg-id 4D3D74D60200002500039B3C@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: BUG #5837: PQstatus() fails to report lost connection  ("Murray S. Kucherawy" <msk@cloudmark.com>)
Ответы Re: BUG #5837: PQstatus() fails to report lost connection  ("Murray S. Kucherawy" <msk@cloudmark.com>)
Re: BUG #5837: PQstatus() fails to report lost connection  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
"Murray S. Kucherawy" <msk@cloudmark.com> wrote:
> From: Kevin Grittner [mailto:Kevin.Grittner@wicourts.gov]

>> What do you think would make this more clear?

> So maybe something like this after the paragraph you cited would
> help:
>
> "Note that after returning a PGresult object, PQresultStatus()
> could indicate a fatal error.  The caller should still iterate
> calling PQgetResult() to completion (i.e. until it returns NULL)
> in order to allow libpq to process the error information
> completely."

A patch based on this suggestion attached for consideration by the
community.

-Kevin


Вложения

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

Предыдущее
От: "Murray S. Kucherawy"
Дата:
Сообщение: Re: BUG #5837: PQstatus() fails to report lost connection
Следующее
От: "Murray S. Kucherawy"
Дата:
Сообщение: Re: BUG #5837: PQstatus() fails to report lost connection