X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8D00CD1B26E for ; Mon, 28 Jun 2004 14:22:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96343-02 for ; Mon, 28 Jun 2004 17:22:27 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id B57D5D1B1B4 for ; Mon, 28 Jun 2004 14:22:24 -0300 (ADT) Received: (qmail 14273 invoked by uid 65534); 28 Jun 2004 17:22:24 -0000 Received: from dsl-082-082-232-099.arcor-ip.net (EHLO colt.pezone.net) (82.82.232.99) by mail.gmx.net (mp019) with SMTP; 28 Jun 2004 19:22:24 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: "Tony and Bryn Reina" , "Tom Lane" Subject: Re: Password with libpq Date: Mon, 28 Jun 2004 19:22:23 +0200 User-Agent: KMail/1.5.1 Cc: References: <272e4be7.0406270913.7a65f99f@posting.google.com> <14320.1088374357@sss.pgh.pa.us> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200406281922.23025.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/353 X-Sequence-Number: 14013 Tony and Bryn Reina wrote: > Thanks Tom. I found the relevant bit of code in the psql files. Looks > like it's just a simple loop that compares the error with the phrase > "fe_sendauth: no password supplied" and then prompts for the password > and tries again. Of course, if someone in the future decides to > change the error message, then the code gets broke. I doubt that's > likely however. Eventually, we should introduce error codes for this situation.