"Tom Lane" <tgl@sss.pgh.pa.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
apassword because the server requires it are really two different things.) You are encouraged to look at the -U and
-Woptions instead.
-- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support!