pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos Hasan <chasan@acepta.com>
To: pgsql-interfaces@postgresql.org
Subject: PQerrorMessage() bug?
Date: Mon, 27 Sep 2004 20:11:51 -0400
Message-ID: <1096330311.4871.11.camel@debian.acepta.com> (raw)

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





view thread (2+ messages)  latest in thread

Message-ID: <1096330311.4871.11.camel@debian.acepta.com>
Permalink:  ../1096330311.4871.11.camel@debian.acepta.com/
Also on:    postgresql.org/message-id/1096330311.4871.11.camel@debian.acepta.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: chasan@acepta.com
  Subject: Re: PQerrorMessage() bug?
  In-Reply-To: <1096330311.4871.11.camel@debian.acepta.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox