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 f3S3J3363663 for ; Fri, 27 Apr 2001 23:19:03 -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 f3S3Ita05675; Fri, 27 Apr 2001 23:18:55 -0400 (EDT) From: Bruce Momjian Message-Id: <200104280318.f3S3Ita05675@candle.pha.pa.us> Subject: Re: libpgtcl and passwords In-Reply-To: <200104280302.f3S32rw03367@candle.pha.pa.us> "from Bruce Momjian at Apr 27, 2001 11:02:53 pm" To: Bruce Momjian Date: Fri, 27 Apr 2001 23:18:55 -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/130 X-Sequence-Number: 1514 > > 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? I think I found the answer: /* * Establish a connection using the new PQconnectdb() interface */ if (argc != 3) { Tcl_AppendResult(interp, "pg_connect: syntax error\n", 0); Tcl_AppendResult(interp, "pg_connect -conninfo conninfoString", 0); return TCL_ERROR; } It wasn't clear to me that -conninfo is the standard PQconnectdb string from the manual. Let me see if I can clear that up. -- 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