Skip site navigation (1) Skip section navigation (2)

Re: psql: default base and password reading

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Adam Osuchowski <adwol(at)polsl(dot)gliwice(dot)pl>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: psql: default base and password reading
Date: 2001-10-14 20:50:21
Message-ID: Pine.LNX.4.30.0110141654470.849-100000@peter.localdomain (view raw or flat)
Thread:
Lists: 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(at)gmx(dot)net   http://funkturm.homeip.net/~peter


In response to

Responses

pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-10-14 20:51:16
Subject: Re: Showing index details with \d on psql
Previous:From: Tom LaneDate: 2001-10-13 23:19:54
Subject: Re: Showing index details with \d on psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group