Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiQHg-0001y5-Fz for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jun 2020 22:30:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jiQHe-0001ly-0d for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jun 2020 22:30:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiQEZ-0006Rp-HP for pgsql-bugs@lists.postgresql.org; Mon, 08 Jun 2020 22:27:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiQEX-0003jj-3j for pgsql-bugs@lists.postgresql.org; Mon, 08 Jun 2020 22:27:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 058MR66W2110960; Mon, 8 Jun 2020 18:27:06 -0400 From: Tom Lane To: "David G. Johnston" cc: exclusion@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #16486: Prompted password is ignored when password specified in connection string In-reply-to: References: <16486-b9c93d71c02c4907@postgresql.org> <2090524.1591652199@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Mon, 08 Jun 2020 15:08:48 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2110958.1591655226.1@sss.pgh.pa.us> Date: Mon, 08 Jun 2020 18:27:06 -0400 Message-ID: <2110959.1591655226@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Mon, Jun 8, 2020 at 2:36 PM Tom Lane wrote: >> The entire point of the -W switch is that it prompts whether or not >> the password is going to be used for anything. > A more intuitive interpretation of -W is that it prompts for a password, > regardless of valid values being provided by other configuration, and uses > that password exclusively to attempt to connect to the server. > The documentation doesn't actually say which one of those two > interpretations is correct. Hmm ... I had thought that the docs explained -W in more or less the same way I did above, but I see that (at least on the psql page) things are indeed pretty vague. I'll see about improving that. regards, tom lane