Re: whats the deal with -u ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Robert Treat" <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: whats the deal with -u ?
Date: 2007-12-10 00:19:35
Message-ID: 22844.1197245975@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> I don't remember why it's deprecated.

> 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?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2007-12-10 00:36:17 Re: Release Note Changes
Previous Message Tom Lane 2007-12-10 00:02:08 Re: pgsql: The E.