Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id A7D6A9FB2B6 for ; Thu, 9 Nov 2006 20:55:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 25552-10 for ; Thu, 9 Nov 2006 20:55:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id DDAD09FB221 for ; Thu, 9 Nov 2006 20:55:52 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 79B2C30DF5; Fri, 10 Nov 2006 01:55:50 +0100 (MET) From: ljb X-Newsgroups: pgsql.interfaces.php Subject: Re: make pg_connect() connect to another unix domain socket Date: Fri, 10 Nov 2006 00:55:39 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 10 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-No-Archive: yes User-Agent: slrn/0.9.8.1 (Linux) To: pgsql-php@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/34 X-Sequence-Number: 3651 xche781@cse.unsw.EDU.AU wrote: > hi all, > > Is it possible to change pg_connect() to connect to another unix domain > socket file? //default is to: /tmp/.s.PGSQL.5432. > > which parameter to pass to pg_connect can make it connect to the other , > says /usr/sss/.s.PGSQL.5432 Specify host=/usr/sss in your connection info string.