Re: [GENERAL] how to use pg-connect ? - Mailing list pgsql-general

From Robert Wagner
Subject Re: [GENERAL] how to use pg-connect ?
Date
Msg-id 85256872.0063BF42.00@SIAC_NOTES_001.wisdom.siac.com
Whole thread Raw
List pgsql-general
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




************




pgsql-general by date:

Previous
From: Sarah Officer
Date:
Subject: Re: [GENERAL] how to use pg-connect ?
Next
From: Peter Eisentraut
Date:
Subject: Re: [GENERAL] what is "view?"