Re: Asking for the [conninfo] definition

From: Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk>
To: u3560719 <u3560719(at)cc(dot)ncu(dot)edu(dot)tw>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Asking for the [conninfo] definition
Date: 2000-10-02 15:13:54
Message-ID: 20001002161354.G22505@quartz.newn.cam.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Patrick Welche 2000-10-02 15:36:02 PsqlODBC broken due to int4out(usesysid)
Previous Message Bruce Momjian 2000-10-02 04:22:48 Re: PgAccess - small bug?