BUG #14996: psql shows password in some cases - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #14996: psql shows password in some cases
Date
Msg-id 20180103083120.10221.74013@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14996
Logged by:          Richard Lindner
Email address:      rlindner81@gmail.com
PostgreSQL version: 10.1
Operating system:   Windows
Description:

Hi,

I experienced what looks like a minor bug.

I use psql in a regular Windows Command shell and it works as expected for
most cases.

When I switch to reading from stdin however, it suddenly shows the password
I enter onscreen. 

So
`psql -d garden < garden-backup.sql`

and similar will cause the password to be readable on screen.


pgsql-bugs by date:

Previous
From: Alan Robertson
Date:
Subject: Re: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOWcommand.
Next
From: PG Bug reporting form
Date:
Subject: BUG #14997: Get segmentation fault on select sum(bigint_field)