Re: whats the deal with -u ?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: whats the deal with -u ?
Дата
Msg-id 475C8BD8.90408@commandprompt.com
обсуждение исходный текст
Ответ на Re: whats the deal with -u ?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: whats the deal with -u ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Alvaro Herrera wrote:
> 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?

As I recall there was a bug under very specific circumstances that a 
password prompt would not appear. Thus we added the option for -W.

Sincerely,

Joshua D. Drake




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: whats the deal with -u ?
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: pgsql: The E.