| From: | Sarah Officer <officers(at)aries(dot)tucson(dot)saic(dot)com> |
|---|---|
| To: | "Ccile DESNOYERS" <cdesnoyers(at)lnet(dot)fr>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: [GENERAL] how to use pg-connect ? |
| Date: | 2000-01-26 18:07:14 |
| Message-ID: | 388F37D2.10A67CD0@aries.tucson.saic.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
I would like more info about the pgtcl commands, too. In the
"Integrated Document" on the postgres web page, there's a list of
commands (chapter 49), but not detailed information. When I enter
pgtclsh, I can get a list of options. For pg_connect, I get this:
% pg_connect
pg_connect: database name missing
pg_connect databaseName [-host hostName] [-port portNumber] [-tty
pgtty]]
pg_connect -conninfo <conninfo-string>
This is fairly intuitive, but the pg_result command isn't as
obvious:
% pg_result
Wrong # of arguments
pg_result result ?option? where option is
-status
-error
-conn
-oid
-numTuples
-numAttrs
-assign arrayVarName
-assignbyidx arrayVarName ?appendstr?
-getTuple tupleNumber
-tupleArray tupleNumber arrayVarName
-attributes
-lAttributes
-clear
Is there a description of these options in one of the other
documents?
Sarah Officer
officers(at)aries(dot)tucson(dot)saic(dot)com
Cécile DESNOYERS wrote:
>
> 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
>
> ************
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Wagner | 2000-01-26 18:12:19 | Re: [GENERAL] how to use pg-connect ? |
| Previous Message | Cécile DESNOYERS | 2000-01-26 17:48:14 | how to use pg-connect ? |