Re: [GENERAL] libpq: PQreset not reconnecting connection, even though server is running - Mailing list pgsql-general

From Geoff Winkless
Subject Re: [GENERAL] libpq: PQreset not reconnecting connection, even though server is running
Date
Msg-id CAEzk6ff0v_12t02BnW0BDExACiXa8qypcyfT6iT5Y6ZfRVp_9Q@mail.gmail.com
Whole thread Raw
In response to [GENERAL] libpq: PQreset not reconnecting connection, even though server is running  (Geoff Winkless <pgsqladmin@geoff.dj>)
List 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 by date:

Previous
From: Geoff Winkless
Date:
Subject: [GENERAL] libpq: PQreset not reconnecting connection, even though server is running
Next
From: Ben Madin
Date:
Subject: Re: [GENERAL] Installing PostgreSQL 10 on Mac OSX Undefined Symbol _heap_modify_tuple_by_cols