Skip site navigation (1) Skip section navigation (2)

Re: psql 9.1 alpha5: connection pointer is NULL

From: Joseph Adams <joeyadams3(dot)14159(at)gmail(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: PostgreSQL Hackers ML <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql 9.1 alpha5: connection pointer is NULL
Date: 2011-04-02 18:56:09
Message-ID: BANLkTikKKWdM7N8_JawTAs6aFukkn-d5iQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
2011/4/2 Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>:
>
> I'm getting the following message after upgrading to Alpha5 on my Fedora
> 14 box:
>
> $ psql -p 5433
> psql: connection pointer is NULL
>
> which comes from libpq. Server is running, and I can connect it to via
> 9.0's psql.
>
> This is a regular RPM build. Am I doing something wrong, or?

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.


Joey Adams

Attachment: PQconnectStartParams-fix-return-false.patch
Description: text/x-patch (730 bytes)

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2011-04-02 18:59:01
Subject: Re: Another swing at JSON
Previous:From: Tom LaneDate: 2011-04-02 18:53:00
Subject: Re: Another swing at JSON

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group