Re: whats the deal with -u ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Gregory Stark <stark(at)enterprisedb(dot)com>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: whats the deal with -u ?
Date: 2007-12-11 01:26:40
Message-ID: 23769.1197336400@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Frost <sfrost(at)snowman(dot)net> writes:
> * Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
>> However, I think we should either get rid of -u or find a way to
>> un-deprecate it. Right now, it's undocumented and as far as I can see
>> the main effect of having it is to cause confusion such as that which
>> started this thread.
>>
>> On the whole I'm in favor of removing it. It's been undocumented for
>> long enough that no one could really complain if it disappears.

> I agree that it'd be best to remove it and I don't think it'll cause
> problems for it to go away.

I dug around a bit more and realized that pg_dump and pg_restore have
the same -u switch with the same behavior. Theirs are likewise
undocumented, but they don't print the annoying deprecation notice
when it's used.

The use-case for a prompt for username seems even less for these two
programs than for psql, so I doubt that removing the switch is likely
to break any existing usage.

Barring objections, I'll remove all three tomorrow.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-12-11 03:05:39 Re: Release Note Changes
Previous Message Erik Jones 2007-12-11 01:01:31 Re: partitioned table query question