From: Hélder M. Vieira <hmv@mail.telepac.pt>
To: pgsql-odbc@postgresql.org
Subject: Re: cannot find pg_hba.conf file
Date: Sun, 4 Oct 2009 12:17:38 +0100
Message-ID: <52684A9924CF47EE89D84CE5C4C281D9@Hmv03> (raw)
In-Reply-To: <001801ca4139$c9a92fd0$5cfb8f70$@com>
References: <001801ca4139$c9a92fd0$5cfb8f70$@com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: hmv@mail.telepac.pt
Subject: Re: cannot find pg_hba.conf file
In-Reply-To: <52684A9924CF47EE89D84CE5C4C281D9@Hmv03>
References: <001801ca4139$c9a92fd0$5cfb8f70$@com> <52684A9924CF47EE89D84CE5C4C281D9@Hmv03>
* 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