Thread: make pg_connect() connect to another unix domain socket

make pg_connect() connect to another unix domain socket

From
Xin Chen
Date:
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

thanks !!


Re: make pg_connect() connect to another unix domain socket

From
ljb
Date:
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.