pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedAsking for the [conninfo] definition
2+ messages / 2 participants
[nested] [flat]
* Asking for the [conninfo] definition
@ 2000-09-26 14:38 u3560719 <u3560719@cc.ncu.edu.tw>
0 siblings, 1 reply; 2+ messages in thread
From: u3560719 @ 2000-09-26 14:38 UTC (permalink / raw)
To: pgsql-interfaces
When using PQconnectStart( const char *conninfo), not knowing what the conninfo look like.
How to set the arguments such as host, port, dbname, user, password, etc.
We want to know the definition, too.
ps: the document: programming manual page 118 (ch17 libpq - C library ) is not quite clear and make us confused.
Thanks for answering our questions!
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Asking for the [conninfo] definition
@ 2000-10-02 15:13 Patrick Welche <prlw1@newn.cam.ac.uk>
parent: u3560719 <u3560719@cc.ncu.edu.tw>
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Welche @ 2000-10-02 15:13 UTC (permalink / raw)
To: u3560719 <u3560719@cc.ncu.edu.tw>; +Cc: pgsql-interfaces
On Tue, Sep 26, 2000 at 10:38:23PM +0800, u3560719 wrote:
>
>
> When using PQconnectStart( const char *conninfo), not knowing what the conninfo look like.
> How to set the arguments such as host, port, dbname, user, password, etc.
> We want to know the definition, too.
> ps: the document: programming manual page 118 (ch17 libpq - C library ) is not quite clear and make us confused.
> Thanks for answering our questions!
I haven't checked, but from memory eg:
PGconn *conn;
conn=PQconnectStart("dbname=test user=nobody");
Cheers,
Patrick
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-10-02 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-09-26 14:38 Asking for the [conninfo] definition u3560719 <u3560719@cc.ncu.edu.tw>
2000-10-02 15:13 ` Patrick Welche <prlw1@newn.cam.ac.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox