Re: Asking for the [conninfo] definition - Mailing list pgsql-interfaces

From Patrick Welche
Subject Re: Asking for the [conninfo] definition
Date
Msg-id 20001002161354.G22505@quartz.newn.cam.ac.uk
Whole thread Raw
In response to Asking for the [conninfo] definition  ("u3560719" <u3560719@cc.ncu.edu.tw>)
List 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


pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_aclcheck error?
Next
From: Patrick Welche
Date:
Subject: PsqlODBC broken due to int4out(usesysid)