pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrick Welche <prlw1@newn.cam.ac.uk>
To: u3560719 <u3560719@cc.ncu.edu.tw>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Asking for the [conninfo] definition
Date: Mon, 2 Oct 2000 16:13:54 +0100
Message-ID: <20001002161354.G22505@quartz.newn.cam.ac.uk> (raw)
In-Reply-To: <000101c027c7$6ea2c4b0$1de0738c@littlejohn>
References: <000101c027c7$6ea2c4b0$1de0738c@littlejohn>

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



view thread (2+ messages)

Message-ID: <20001002161354.G22505@quartz.newn.cam.ac.uk>
Permalink:  ../20001002161354.G22505@quartz.newn.cam.ac.uk/
Also on:    postgresql.org/message-id/20001002161354.G22505@quartz.newn.cam.ac.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: prlw1@newn.cam.ac.uk, u3560719@cc.ncu.edu.tw
  Subject: Re: Asking for the [conninfo] definition
  In-Reply-To: <20001002161354.G22505@quartz.newn.cam.ac.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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