Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B0E36633712 for ; Sun, 4 Oct 2009 08:18:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90524-04 for ; Sun, 4 Oct 2009 11:18:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay6.ptmail.sapo.pt (relay6.ptmail.sapo.pt [212.55.154.26]) by mail.postgresql.org (Postfix) with SMTP id 158946339AB for ; Sun, 4 Oct 2009 08:18:14 -0300 (ADT) Received: (qmail 24611 invoked from network); 4 Oct 2009 11:17:56 -0000 Received: from unknown (HELO sapo.pt) (10.134.37.162) by relay6 with SMTP; 4 Oct 2009 11:17:56 -0000 Received: (qmail 26677 invoked from network); 4 Oct 2009 11:17:56 -0000 X-AntiVirus: PTMail-AV 0.3-0.95.1 X-Scan-Status: AV clean (0.02401 seconds); AS clean (0.30204 seconds); Received: from unknown (HELO Hmv03) (hmv@[82.155.150.179]) (envelope-sender ) by mta12 (qmail-ldap-1.03) with SMTP for ; 4 Oct 2009 11:17:55 -0000 Message-ID: <52684A9924CF47EE89D84CE5C4C281D9@Hmv03> From: =?iso-8859-1?Q?H=E9lder_M._Vieira?= To: References: <001801ca4139$c9a92fd0$5cfb8f70$@com> In-Reply-To: <001801ca4139$c9a92fd0$5cfb8f70$@com> Subject: Re: cannot find pg_hba.conf file Date: Sun, 4 Oct 2009 12:17:38 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18005 x-mimeole: Produced By Microsoft MimeOLE V6.0.6002.18005 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.739 tagged_above=-10 required=5 tests=BAYES_20=-0.74, STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200910/2 X-Sequence-Number: 10027 Hi, I am new to Postgres, so if the question is to basic I apologize. I am trying to migrate from SqlBase to Postgres. I am trying to connect a windows XP station to a Postgres database on a Server machine. >I installed the psqlodbc-08.04.0100-1 on the workstation and configure it >with the server, database, user and password, but when I test the >connection >I get "FATAL: no pg_hba.conf entry for host...". However I can not find >this >file to add the entry. The psqlOBDC setup did not create this file. Where >can >I find this file in a Windows workstation , so I can add the entry and the >ODBC >driver can read it ? You won't find it in the workstation. The ODBC driver is just showing you a message it received from the server. When the server noticed the connection attempt, it tried to check two things: - If the client IP fits into one of the IP ranges defined by the administrator as acceptable; - What kind of authentication method the administrator chose for that specific IP range. Upon installation, the pg_hba.conf file will be in the 'data' folder, and will be suitable for local connections. For remote connections, you'll have to edit it according to the rules defined in the Postgres documentation ( chapter 19.1 ). Regards, Helder M. Vieira