Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 840C0633551 for ; Wed, 5 May 2010 07:59:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 35259-04 for ; Wed, 5 May 2010 10:58:59 +0000 (UTC) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id 9C2E163347C for ; Wed, 5 May 2010 07:59:00 -0300 (ADT) Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by pgfoundry.org (Postfix) with ESMTP id 0916410716FE for ; Wed, 5 May 2010 10:58:59 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 27956-03; Wed, 5 May 2010 10:58:51 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id C91AE10716FC; Wed, 5 May 2010 10:58:51 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000600 ] odbc via the local net (lan & Wan) Content-type: text/plain; charset=UTF-8 Message-Id: <20100505105851.C91AE10716FC@pgfoundry.org> Date: Wed, 5 May 2010 10:58:51 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.758 tagged_above=-10 required=5 tests=AWL=1.152, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/2 X-Sequence-Number: 10249 Bugs item #1000600, was opened at 2006-03-27 18:44 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000600&group_id=1000125 Category: Interface (example) Group: v1.0 (example) Status: Closed Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: odbc via the local net (lan & Wan) Initial Comment: When you have installed the odbc driver local where the db also is installed, it does work. When you have istalled the odbc driver local on a client machine, the connection failed - it is always looking for the pg_hba.conf file. - log: LIBPQ returned -> FATAL: missing or erroneous pg_hba.conf file HINT: See server log for details. [1452]CONN ERROR: func=PGAPI_DriverConnect, desc='Error from CC_Connect', errnum=113, sqlstate=08001, errmsg='FATAL: missing or erroneous pg_hba.conf file HINT: See server log for details. ' [1452][SQLGetDiagRecW] ---------------------------------------------------------------------- >Comment By: Dave Page (dpage) Date: 2010-05-05 10:58 Message: Yes, the error does come from the server. psqlODBC doesn't have any way to read the pg_hba.conf file - that is *always* done by the server, which will return the error shown if it cannot parse the file. If you believe I am incorrect, please feel free to check the source code and see for yourself. ---------------------------------------------------------------------- Comment By: Sorin Cristescu (scr53005) Date: 2010-05-05 10:26 Message: Hi, I have the same problem. The pg_hba.conf is NOT missing and does NOT contain an error : the server works fine AND psqlODBC works fine AS LONG AS I set the "Server" as 127.0.0.1 when defining a psqlODBC-based DSN. BUT ... when I replace 127.0.0.1 with 10.128.54.77 (IP address of the Postgres server ...) I get a "missing or erroneous pg_hba.conf". The error is NOT reported by the server, it only appears when defining a DSN in odbcad32.exe ---------------------------------------------------------------------- Comment By: Dave Page (dpage) Date: 2006-04-28 08:24 Message: This error is being reported by the server because your pg_hba.conf file is missing or contains an error. This is not a psqlodbc problem. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000600&group_id=1000125