Re: Asking for the [conninfo] definition

Поиск
Список
Период
Сортировка
От Patrick Welche
Тема Re: Asking for the [conninfo] definition
Дата
Msg-id 20001002161354.G22505@quartz.newn.cam.ac.uk
обсуждение исходный текст
Ответ на Asking for the [conninfo] definition  ("u3560719" <u3560719@cc.ncu.edu.tw>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_aclcheck error?
Следующее
От: Patrick Welche
Дата:
Сообщение: PsqlODBC broken due to int4out(usesysid)