Re: libpq and connection failures

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq and connection failures
Дата
Msg-id 13032.1120574589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на libpq and connection failures  (jtv@xs4all.nl)
Ответы Re: libpq and connection failures
Список pgsql-interfaces
jtv@xs4all.nl writes:
> Is there any reason why pqReadData() (interfaces/libpq/fe-misc.c), if
> pqsecure_read() fails with an error that isn't special-cased as a
> transient one, returns -1 but leaves the connection state at
> CONNECTION_OK?

I think it's probably better to have the default assumption be
"connection possibly recoverable" than have it be "summarily kill
connection at first hint of trouble".  The latter seems less robust
not more so.
        regards, tom lane


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

Предыдущее
От: jtv@xs4all.nl
Дата:
Сообщение: libpq and connection failures
Следующее
От: jtv@xs4all.nl
Дата:
Сообщение: Re: libpq and connection failures