Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E2DEE634709 for ; Thu, 28 Jan 2010 09:36:43 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 64403-01 for ; Thu, 28 Jan 2010 13:36:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sun1000.pwr.wroc.pl (sun1000.pwr.wroc.pl [156.17.250.2]) by mail.postgresql.org (Postfix) with ESMTP id 53368634030 for ; Thu, 28 Jan 2010 09:36:16 -0400 (AST) MIME-version: 1.0 Content-disposition: inline Content-type: text/plain; charset=iso-8859-2 Received: from pwr.wroc.pl ([156.17.193.108]) by sun1000.pwr.wroc.pl (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTP id <0KWY00BL5LSE8T50@sun1000.pwr.wroc.pl> for pgsql-php@postgresql.org; Thu, 28 Jan 2010 14:36:14 +0100 (CET) Received: from [156.17.193.108] (Forwarded-For: 156.17.5.70) by z-pmail.wcss.wroc.pl (mshttpd); Thu, 28 Jan 2010 14:36:14 +0100 From: Ireneusz Tarnowski To: Bill Moran , Andrew McMillan Cc: pgsql-php@postgresql.org Reply-to: Ireneusz.Tarnowski@pwr.wroc.pl Message-id: <73a0d649417f.4b61a0de@pwr.wroc.pl> Date: Thu, 28 Jan 2010 14:36:14 +0100 X-Mailer: Sun Java(tm) System Messenger Express 7u3-12.01 64bit (built Oct 15 2009) Content-language: pl Subject: Re: problem with connection to remote server X-Accept-Language: pl In-reply-to: <20100128074300.59a4591d.wmoran@potentialtech.com> References: <72b0d9d047b1.4b616c3d@pwr.wroc.pl> <1264672955.25189.256.camel@happy.home.mcmillan.net.nz> <20100128074300.59a4591d.wmoran@potentialtech.com> Content-transfer-encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/10 X-Sequence-Number: 4108 =3E In addition to this=2C PHP will give some pretty useful error messag= es when =3E it can=27t connect=2E=A0 If you=27re not seeing those=2C then you sh= ould adjust =3E your application logic to log them=2C it will make your life a lot e= asier=2E =3E If they don=27t clearly define the problem=2C post them here =2E=2E=2E= I (and =3E others like me) have seen them enough to know what they indicate=2E I have warning=3A Warning=3A pg=5Fconnect() =5Bfunction=2Epg-connect=5D=3A Unable to conne= ct to PostgreSQL server=3A could not connect to server=3A No such file o= r directory Is the server running on host =22XX=2EXX=2EXX=2EXX=22 and ac= cepting TCP/IP connections on port 5432=3F in /export/sun1000/XXXXXXX/pu= blic=5Fhtml/dbtest=2Ephp on line 10 And nothing more=2E Postgresql log=2C apache error log and php error log= write nothing about this connection=2E -- Irek