| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5837: PQstatus() fails to report lost connection |
| Дата | |
| Msg-id | 6493.1295882981@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #5837: PQstatus() fails to report lost connection ("Murray S. Kucherawy" <msk@cloudmark.com>) |
| Ответы |
Re: BUG #5837: PQstatus() fails to report lost connection
|
| Список | pgsql-bugs |
"Murray S. Kucherawy" <msk@cloudmark.com> writes:
> Given what you say here, this seems to be an exception for which there
> is currently no detection mechanism short of looking for that one
> specific error string indicating it was administrative action causing
> the error.
This is complete nonsense. If you followed the documented method for
using PQgetResult -- ie, keep calling it till it returns NULL, rather
than assuming there will be a specific number of results --- then
PQstatus would show you the bad status afterwards.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера