Re: make pg_connect() connect to another unix domain socket - Mailing list pgsql-php

From ljb
Subject Re: make pg_connect() connect to another unix domain socket
Date
Msg-id ej0imb$1v7o$1@news.hub.org
Whole thread Raw
In response to make pg_connect() connect to another unix domain socket  (Xin Chen <xche781@cse.unsw.EDU.AU>)
List pgsql-php
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.

pgsql-php by date:

Previous
From: Brew
Date:
Subject: Re: PgSQL and integration between 2 PHP programs and a Java program
Next
From: "Servers24 Network"
Date:
Subject: Re: PgSQL and integration between 2 PHP programs and a Java program