Re: BUG #16746: [PG12.5 psql] Password ignored by connect meta-command

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: kgradekx(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: BUG #16746: [PG12.5 psql] Password ignored by connect meta-command
Date: 2020-11-29 00:48:32
Message-ID: CAKFQuwagfZ_KG-PbuTqCgKWOjELfDRLZrCvDiBSpZZqNgigK4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom, will need your input here.

On Thu, Nov 26, 2020 at 4:09 AM PG Bug reporting form <
noreply(at)postgresql(dot)org> wrote:

> The following bug has been logged on the website:
>
> Bug reference: 16746
> Logged by: Krzysztof Gradek
> Email address: kgradekx(at)gmail(dot)com
> PostgreSQL version: 12.5
> Operating system: Centos
> Description:
>
> Hi
> I just migrated my app to PG 12.5 and jumped into an issue which didn't
> exist in PG12.3: the password provided in connection URI is ignored by
> connect meta-command.
> [...]
> $ psql
> psql (12.5)
> Type "help" for help.
>
> postgres=# \connect
> postgresql://ph_quartz_user:password(at)127(dot)0(dot)0(dot)1/ph_quartz
> Password for user ph_quartz_user:
>
> Same sequence using earlier version:
> $ /usr/pgsql-9.4/bin/psql
> psql (9.4.4, server 12.5)
> WARNING: psql major version 9.4, server major version 12.0.
> Some psql features might not work.
> Type "help" for help.
>
>
I checked versions 13.1 and 12.3 and can confirm that in v13 a
password-included connection string still results in a prompt for a
password when using \connect, but it does not in 12.3.

David J.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-11-29 02:18:32 Re: BUG #16746: [PG12.5 psql] Password ignored by connect meta-command
Previous Message Tom Lane 2020-11-28 19:15:11 Re: SV: Problem with pg_notify / listen