pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16486: Prompted password is ignored when password specified in connection string
Date: Mon, 08 Jun 2020 17:36:39 -0400
Message-ID: <2090524.1591652199@sss.pgh.pa.us> (raw)
In-Reply-To: <16486-b9c93d71c02c4907@postgresql.org>
References: <16486-b9c93d71c02c4907@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> Assuming that we have the user u1 with the password p1, the following
> command:
> psql -U u1 'dbname=postgres password=p1' -W
> prompts for a password but the input password is effectively ignored.

The entire point of the -W switch is that it prompts whether or not
the password is going to be used for anything.  If you don't like that,
don't use -W.

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <2090524.1591652199@sss.pgh.pa.us>
Permalink:  ../2090524.1591652199@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2090524.1591652199@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16486: Prompted password is ignored when password specified in connection string
  In-Reply-To: <2090524.1591652199@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox