"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!