Re: BUG #16486: Prompted password is ignored when password specified in connection string

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: exclusion(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16486: Prompted password is ignored when password specified in connection string
Date: 2020-06-08 21:36:39
Message-ID: 2090524.1591652199@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-06-08 21:41:00 Re: BUG #16487: EXPLAIN produces JSON with duplicate "Workers" arrays
Previous Message legrand legrand 2020-06-08 21:28:45 pg_stat_statements: duplicated external query texts with MSY2