| От | Tom Lane |
|---|---|
| Тема | Re: libpq PQstatus problem |
| Дата | |
| Msg-id | 23882.984549126@sss.pgh.pa.us обсуждение |
| Ответ на | libpq PQstatus problem (<philip.howell@cit.act.edu.au>) |
| Список | pgsql-interfaces |
<philip.howell@cit.act.edu.au> writes:
> Then I stopped the network (eth0) on the postgreSQL server and hit <return>
> again and still got
>> Connection status... OK
I don't believe this is a bug. PQstatus indicates whether you did make
a successful connection to the database server --- it is not intended to
be an up-to-the-nanosecond report on whether the network is still up or
not. In particular, the status will *not* be updated if you haven't
executed any new operations on the connection lately.
If you have a network that's so unstable that you need to program around
problems like this, consider 'ping'.
regards, tom lane
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера