Received: from clio.trends.ca (root@clio.trends.ca [209.47.148.2]) by hub.org (8.10.1/8.10.1) with ESMTP id e92FSKP50074 for ; Mon, 2 Oct 2000 11:28:22 -0400 (EDT) Received: from henry.newn.cam.ac.uk (henry.newn.cam.ac.uk [131.111.204.130]) by clio.trends.ca (8.10.2/8.10.2) with ESMTP id e92FGvY21798 for ; Mon, 2 Oct 2000 11:16:57 -0400 (EDT) Received: from [131.111.204.180] (helo=quartz.newn.cam.ac.uk) by henry.newn.cam.ac.uk with esmtp (Exim 3.13 #1) id 13g7I4-0000V7-00; Mon, 02 Oct 2000 16:14:04 +0100 Received: from prlw1 by quartz.newn.cam.ac.uk with local (Exim 3.13 #1) id 13g7Hv-00067S-00; Mon, 02 Oct 2000 16:13:55 +0100 Date: Mon, 2 Oct 2000 16:13:54 +0100 From: Patrick Welche To: u3560719 Cc: pgsql-interfaces@postgresql.org Subject: Re: Asking for the [conninfo] definition Message-ID: <20001002161354.G22505@quartz.newn.cam.ac.uk> Reply-To: prlw1@cam.ac.uk References: <000101c027c7$6ea2c4b0$1de0738c@littlejohn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <000101c027c7$6ea2c4b0$1de0738c@littlejohn>; from u3560719@cc.ncu.edu.tw on Tue, Sep 26, 2000 at 10:38:23PM +0800 X-Archive-Number: 200010/1 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