pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Moran <wmoran@potentialtech.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Connecting PHP-based Application to Postgres-9.0.3
Date: Thu, 7 Apr 2011 13:20:29 -0400
Message-ID: <20110407132029.be595363.wmoran@potentialtech.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1104071014420.397@salmo.appl-ecosys.com>
References: <alpine.LNX.2.00.1104070900530.397@salmo.appl-ecosys.com>
	<201104070920.37258@hal.medialogik.com>
	<alpine.LNX.2.00.1104070933460.397@salmo.appl-ecosys.com>
	<20110407125635.1ae13751.wmoran@potentialtech.com>
	<alpine.LNX.2.00.1104071014420.397@salmo.appl-ecosys.com>

In response to Rich Shepard <rshepard@appl-ecosys.com>:

> 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/



view thread (42+ messages)  latest in thread

Message-ID: <20110407132029.be595363.wmoran@potentialtech.com>
Permalink:  ../20110407132029.be595363.wmoran@potentialtech.com/
Also on:    postgresql.org/message-id/20110407132029.be595363.wmoran@potentialtech.com

 · 

reply

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-php@postgresql.org
  Cc: wmoran@potentialtech.com, rshepard@appl-ecosys.com
  Subject: Re: Connecting PHP-based Application to Postgres-9.0.3
  In-Reply-To: <20110407132029.be595363.wmoran@potentialtech.com>
  References: <alpine.LNX.2.00.1104070900530.397@salmo.appl-ecosys.com> <201104070920.37258@hal.medialogik.com> <alpine.LNX.2.00.1104070933460.397@salmo.appl-ecosys.com> <20110407125635.1ae13751.wmoran@potentialtech.com> <alpine.LNX.2.00.1104071014420.397@salmo.appl-ecosys.com> <20110407132029.be595363.wmoran@potentialtech.com>

* 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