PQerrorMessage() bug?

From: Carlos Hasan <chasan(at)acepta(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: PQerrorMessage() bug?
Date: 2004-09-28 00:11:51
Message-ID: 1096330311.4871.11.camel@debian.acepta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi,

I think that found a weird bug when PQconnectdb() fails because I
haven't started PostgreSQL. The function PQerrorMessage() returns the
message:

could not connect to server: <<<weird garbage here>>
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.

Looks like the error message wasn't properly formatted.

It happens on Debian Linux "sarge" (with kernel 2.6.8) and PostgreSQL
7.4.5 (with libpq linked dynamically).

It works fine under Red Hat Linux 7.3 and PostgreSQL 7.3.4 (ie. instead
of <<weird garbage here>> and "/var/run/postgresql/.s.PGSQL. it says "No
such file or directory" and "/tmp/.s.PGSQL.nnnn"? where nnnn is an
integer).

Any ideas of what could be the problem?

Thanks,

Carlos

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Daniel Verite 2004-09-30 11:12:35 bugfix proposal for ecpglib prepare's parse code
Previous Message Steve Ellis 2004-09-23 23:29:06 Problems with Pg.pm