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

From: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: libpq: PQreset not reconnecting connection, even though server is running
Date: 2017-10-25 12:29:53
Message-ID: CAEzk6ff0v_12t02BnW0BDExACiXa8qypcyfT6iT5Y6ZfRVp_9Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ben Madin 2017-10-25 14:21:05 Re: Installing PostgreSQL 10 on Mac OSX Undefined Symbol _heap_modify_tuple_by_cols
Previous Message Geoff Winkless 2017-10-25 12:24:20 libpq: PQreset not reconnecting connection, even though server is running