Dear Cecile,
You can do this with a connection string:
pg_connect -conninfo $string
...or directly, dos/unix style, as in
pg_connect $database -host $host -port $portNumber
Cheers
Rob
C
écile DESNOYERS <cdesnoyers@lnet.fr> on 01/26/2000 12:48:14 PM
To: pgsql-general@postgreSQL.org
cc: (bcc: Robert Wagner/SIAC)
Subject: [GENERAL] how to use pg-connect ?
Hello,
I'd like to know if there is a way to use pg_connect() with a
different host than
« localhost ».
I tried to put an IP address or a server name but it didn't work. Has
anybody ever used pg_connect with something else than localhost ?
Thank you
Cecile
************