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

From Alvaro Herrera
Subject Re: whats the deal with -u ?
Date
Msg-id 20071210003750.GA5624@alvh.no-ip.org
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 ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: whats the deal with -u ?  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: whats the deal with -u ?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
Tom Lane wrote:
> Gregory Stark <stark@enterprisedb.com> writes:
> 
> > The manual explains it:
> >     This option is deprecated, as it is conceptually flawed. (Prompting for a
> >     non-default user name and prompting for a password because the server
> >     requires it are really two different things.) You are encouraged to look
> >     at the -U and -W options instead.
> 
> Hmm.  The point about the forced password prompt is certainly valid,
> but I see nothing wrong with the idea of having an option to prompt
> for the username.  What if we just took out the forced password prompt,
> on the grounds that you can get that with "-u -W" if you want it?

Yes, undeprecating it then makes sense.

I have never understood what's the point of having an option to force a
password prompt.  I wonder why don't we deprecate -W?

-- 
Alvaro Herrera                        http://www.advogato.org/person/alvherre
"Cada quien es cada cual y baja las escaleras como quiere" (JMSerrat)


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Release Note Changes
Next
From: Tom Lane
Date:
Subject: Re: whats the deal with -u ?