Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B86491337BCC for ; Thu, 7 Apr 2011 14:20:52 -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 81290-02-5 for ; Thu, 7 Apr 2011 17:20:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mail.postgresql.org (Postfix) with ESMTP id B65011337BD8 for ; Thu, 7 Apr 2011 14:20:30 -0300 (ADT) Received: from overdrive.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 538C8F7419; Thu, 7 Apr 2011 13:20:30 -0400 (EDT) Date: Thu, 7 Apr 2011 13:20:29 -0400 From: Bill Moran To: Rich Shepard Cc: pgsql-php@postgresql.org Subject: Re: Connecting PHP-based Application to Postgres-9.0.3 Message-Id: <20110407132029.be595363.wmoran@potentialtech.com> In-Reply-To: References: <201104070920.37258@hal.medialogik.com> <20110407125635.1ae13751.wmoran@potentialtech.com> Organization: Bill Moran X-Mailer: Sylpheed 3.0.3 (GTK+ 2.20.1; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/9 X-Sequence-Number: 4171 In response to Rich Shepard : > On Thu, 7 Apr 2011, Bill Moran wrote: > > > The ADODB error message indicates that you are connecting to localhost via > > TCP/IP. The default for psql when you don't specify a host is to connect > > via unix domain socket. You're not testing the same thing. > > Bill > > Oh. > > > See if > > psql -h localhost cms > > works. > > Yes, it does: > > [rshepard@salmo ~]$ psql -h localhost cms > psql (9.0.3) > Type "help" for help. > > cms=# Well, that blows my first theory out of the water ;) Check the PG server logs, and consider increasing some logging levels on the server. PG does some pretty good logging of failed connections if you have the settings right. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/