Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3UFwC334899 for ; Mon, 30 Apr 2001 11:58:12 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.10.1/8.10.1) id f3UFw8j16231; Mon, 30 Apr 2001 11:58:08 -0400 (EDT) From: Bruce Momjian Message-Id: <200104301558.f3UFw8j16231@candle.pha.pa.us> Subject: Re: libpgtcl and passwords In-Reply-To: <20010430104858.A6311@bluff.ermit.it> "from Sandro Dentella at Apr 30, 2001 10:48:58 am" To: Sandro Dentella Date: Mon, 30 Apr 2001 11:58:08 -0400 (EDT) CC: PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200104/137 X-Sequence-Number: 1521 > On Fri, Apr 27, 2001 at 11:02:53PM -0400, Bruce Momjian wrote: > > > > Is there a way to user username/passwords with libpgtcl? I don't see > > any options in pg_connect. Is it pg_connect -conninfo conninfoString? > > Does conninfoString match libpq's PQconnectdb? > > set p [pg_connect -conninfo "user=postgres host=localhost dbname=erm \ > password=xxx"] > > is this what you are asking for? Yes, I later found -conninfo, and updated the SGML to mention that the flags supported are those of libpq's PQconnectdb. Thanks. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026