Re: [GENERAL] libpq: PQreset not reconnecting connection, even though server is running

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: [GENERAL] libpq: PQreset not reconnecting connection, even though server is running
Дата
Msg-id CAEzk6ff0v_12t02BnW0BDExACiXa8qypcyfT6iT5Y6ZfRVp_9Q@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] libpq: PQreset not reconnecting connection, even though server is running  (Geoff Winkless <pgsqladmin@geoff.dj>)
Список pgsql-general
I wrote:
> I'm guessing (from "incomplete startup packet") that the connection
> created by the new thread never actually succeeded, is that the
> problem? Will PQreset only work on a connection that had previously
> connected successfully?

And as soon as I hit "send" on this email light dawned: the code that
calls our "creates db connection" function is not checking the return
value correctly, and PQreset fails because our that function wipes out
the connection object (assuming that it cannot be used).

Sorry to waste bandwidth.

Geoff


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Geoff Winkless
Дата:
Сообщение: [GENERAL] libpq: PQreset not reconnecting connection, even though server is running
Следующее
От: Ben Madin
Дата:
Сообщение: Re: [GENERAL] Installing PostgreSQL 10 on Mac OSX Undefined Symbol _heap_modify_tuple_by_cols