Re: whats the deal with -u ? - Mailing list pgsql-hackers

From Robert Treat
Subject Re: whats the deal with -u ?
Date
Msg-id 200712091400.04006.xzilla@users.sourceforge.net
Whole thread Raw
In response to Re: whats the deal with -u ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: whats the deal with -u ?
List pgsql-hackers
On Sunday 09 December 2007 13:33, Tom Lane wrote:
> Robert Treat <xzilla@users.sourceforge.net> writes:
> > 1) I don't recall why -u was ever deprecated (and honestly postgresql is
> > the only program I know which uses -U rather than -u) but maybe we should
> > revert to -u and deprecate -U instread?
>
> You appear to think that -u and -U are supposed to be equivalent.
> You are incorrect.  -u forces prompts for username and password.
>

Ah, you're right, I didn't realize that (probably because nothing in the 
warnings seem to indicate that).  However I think all of my questions still 
remain valid, if not becoming even further re-encforced:

rob@ridley:~$ ~rob/devel/postgresql/83/bin/psql -h localhost -u -p 5483
psql: Warning: The -u option is deprecated. Use -U.

If I wanted to prompt for a username, why is it telling me to  use -U? If 
we've deemed that's not a valid behavior to want, see questions 1,2 & 3 from 
upthread :-)

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: whats the deal with -u ?
Next
From: Tom Lane
Date:
Subject: Re: whats the deal with -u ?