Re: psql 9.1 alpha5: connection pointer is NULL - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql 9.1 alpha5: connection pointer is NULL
Date
Msg-id 1397.1301782258@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql 9.1 alpha5: connection pointer is NULL  (Joseph Adams <joeyadams3.14159@gmail.com>)
Responses Re: psql 9.1 alpha5: connection pointer is NULL
Re: psql 9.1 alpha5: connection pointer is NULL
List pgsql-hackers
Joseph Adams <joeyadams3.14159@gmail.com> writes:
> I couldn't reproduce this (using upstream source on Ubuntu).  However,
> I did find a little bug in libpq causing the connection handle to
> become NULL in the event of an option parsing error.  This bug has
> been around since release 9.0.0, and may be unrelated to the problem.

Yeah, that's clearly a bug --- fix committed, thanks for the patch!

It could explain Devrim's report if the parameters passed by psql had
some problem that was detectable by conninfo_array_parse().  That seems
a bit unlikely, but I did think of one possibility: if Devrim was
testing 9.1 psql with a 9.0 libpq (perhaps due to an rpath issue)
then 9.0 libpq would spit up on client_encoding, which wasn't a legal
connection parameter in 9.0.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in autovacuum.c?
Next
From: Tom Lane
Date:
Subject: Re: wal_buffers = -1 and SIGHUP