BUG #14996: psql shows password in some cases

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Cc: rlindner81(at)gmail(dot)com
Subject: BUG #14996: psql shows password in some cases
Date: 2018-01-03 08:31:20
Message-ID: 20180103083120.10221.74013@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14996
Logged by: Richard Lindner
Email address: rlindner81(at)gmail(dot)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.

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2018-01-03 12:16:32 BUG #14997: Get segmentation fault on select sum(bigint_field)
Previous Message Alan Robertson 2018-01-02 21:35:54 Re: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command.