Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7321F4760CC for ; Tue, 3 Sep 2002 09:43:26 -0400 (EDT) Received: from snoopy.mohawksoft.com (h0050bf7a618d.ne.client2.attbi.com [24.147.138.78]) by postgresql.org (Postfix) with ESMTP id 688D447697B for ; Tue, 3 Sep 2002 09:42:43 -0400 (EDT) Received: from mohawksoft.com (localhost [127.0.0.1]) by snoopy.mohawksoft.com (8.11.6/8.11.6) with ESMTP id g83DbC017601; Tue, 3 Sep 2002 09:37:12 -0400 Message-ID: <3D74BB08.866F8378@mohawksoft.com> Date: Tue, 03 Sep 2002 09:37:12 -0400 From: mlw X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19-SMP i686) X-Accept-Language: en MIME-Version: 1.0 To: Vikram Sulakhe Cc: pgsql-odbc@postgresql.org Subject: Re: Connecting to PGSQL References: <005701c25310$266aa2a0$8ea1a082@redstorm> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/8 X-Sequence-Number: 1979 Vikram Sulakhe wrote: > > I am using CRecordset object to access the pgSQL database. While I insert > this CRecordset Object using class wizard in Visual Studio I get following > error > "FATAL 1: No pg_hba.conf entry for host 130.160.161.142, user grade, > database oscar" > > ODBC driver version: 07.02.0002 > PostgreSQL database version : 7.2.1 > error message: FATAL 1: No pg_hba.conf entry for host 130.160.161.142, user > grade, database oscar > the commlog(psqlodbc_????.log) file (you will have to enable the commlog > driver option) : attached > the ODBC trace log (sql.log) file (if the problem warrants it) : attached > > looking forward to your reply, > > Regards, > Vikram That looks easy, check the pg_hba.conf file on your PostgreSQL server. It is not configured to allow your IP address. > > ------------------------------------------------------------------------------- > Name: psqlodbc_3616.log > psqlodbc_3616.log Type: unspecified type (application/octet-stream) > Encoding: quoted-printable > > Name: SQL.LOG > SQL.LOG Type: unspecified type (application/octet-stream) > Encoding: quoted-printable > > ------------------------------------------------------------------------------- > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly