X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B8649329E47 for ; Tue, 28 Sep 2004 01:12:33 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99012-04 for ; Tue, 28 Sep 2004 00:12:29 +0000 (GMT) Received: from mail.custodium.com (unknown [200.68.2.38]) by svr1.postgresql.org (Postfix) with ESMTP id 7AB43329FFD for ; Tue, 28 Sep 2004 01:12:28 +0100 (BST) Received: from [192.168.4.126] (ns.custodium.cl [200.2.211.50] (may be forged)) by mail.custodium.com (8.12.2/8.12.2) with ESMTP id i8S0JLpM017203 for ; Mon, 27 Sep 2004 20:19:23 -0400 Subject: PQerrorMessage() bug? From: Carlos Hasan To: pgsql-interfaces@postgresql.org Content-Type: text/plain Message-Id: <1096330311.4871.11.camel@debian.acepta.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 27 Sep 2004 20:11:51 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/2 X-Sequence-Number: 5097 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: <<> 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 <> 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