Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 2D710475C6D; Mon, 8 Jul 2002 15:25:52 -0400 (EDT) Mailbox-Line: From howe@carcass.dhs.org Mon Jul 8 15:25:52 2002 Received: from cairu.terra.com.br (cairu.terra.com.br [200.176.3.19]) by postgresql.org (Postfix) with ESMTP id CB44F476223; Mon, 8 Jul 2002 12:41:26 -0400 (EDT) Received: from pacuiba.terra.com.br (pacuiba.terra.com.br [200.176.3.40]) by cairu.terra.com.br (Postfix) with ESMTP id 6C3A04950B; Mon, 8 Jul 2002 13:40:20 +0000 (GMT) Received: from 200.176.55.246 (cm-net-cwb-C8B037F6.brdterra.com.br [200.176.55.246]) (authenticated user howe) by pacuiba.terra.com.br (Postfix) with ESMTP id 18C62804B; Mon, 8 Jul 2002 13:41:30 -0300 (EST) Date: Mon, 8 Jul 2002 13:41:33 -0300 From: Steve Howe X-Mailer: The Bat! (v1.60q/Post3) Reply-To: Steve Howe Organization: ACME X-Priority: 3 (Normal) Message-ID: <8495444191.20020708134133@carcass.dhs.org> To: pgsql-interfaces-owner@postgresql.org, ozric tentacle Cc: pgsql-questions@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: HELP FOR POSTGRESQL NEEDED... In-Reply-To: <20020706122244.55874.qmail@web13106.mail.yahoo.com> References: <20020706122244.55874.qmail@web13106.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-1.6 required=5.0 tests=IN_REP_TO,NO_MX_FOR_FROM version=2.30 X-Spam-Level: X-Archive-Number: 200207/21 X-Sequence-Number: 2830 Hello ozric, Saturday, July 6, 2002, 9:22:44 AM, you wrote: ot> Hello.I am experiencing a quite strange behavior with my ot> postgreSQL database. ot> I have edited the file pg_hba.conf like this: ot> # TYPE DATABASE IP_ADDRESS MASK AUTH_TYPE AUTH_ARGUMENT ot> local all password ot> host all 127.0.0.1 255.255.255.255 password ot> in order to require user authentication.This works perfectly when ot> I connect to the database with psql or pgaccess and I'm able to ot> perform ot> all kinds of queries. ot> However when I try to connect to the database with C++ even though ot> it allows me to connect (providing the correct username & ot> password) ot> all the queries fail...The C++ code I use is the following: Did you start the postmaster with -i parameter so that it allows TCP/IP connections ? Run a nmap localhost command to check if your 5432 port is open. If PostgreSQL is running and accepting connections, it should be listed as open. Psql will connect through unix sockets, not as TCP sockets. ------------- Best regards, Steve Howe mailto:howe@carcass.dhs.org