Re: whats the deal with -u ?

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "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-09 23:46:18
Message-ID: 871w9vo2id.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> I don't remember why it's deprecated.

The manual explains it:

-u

Forces psql to prompt for the user name and password before connecting to
the database.

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.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support!

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-12-09 23:52:20 Re: pgsql: The E.
Previous Message Bruce Momjian 2007-12-09 23:39:55 Re: Release Note Changes