Re: psql: default base and password reading - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: psql: default base and password reading
Date
Msg-id Pine.LNX.4.30.0110141654470.849-100000@peter.localdomain
Whole thread Raw
In response to Re: psql: default base and password reading  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: psql: default base and password reading
Re: psql: default base and password reading
Re: psql: default base and password reading
List pgsql-patches
Bruce Momjian writes:

> Have you seen my later version that reads from stdin/stderr if /dev/tty
> doesn't open.  How is that?

Might as well use getpass() if available.  My man page says "A getpass
function appeared in Version 7 AT&T UNIX.", so it should be available on
most systems.

However, I'm afraid many users have set up their systems to read the
password from stdin, so that should probably stay the default unless we
take a user poll.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Showing index details with \d on psql
Next
From: Tom Lane
Date:
Subject: Re: Showing index details with \d on psql