specifying a password on the cmd line for db connect

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: specifying a password on the cmd line for db connect
Date: 2009-11-16 22:51:41
Message-ID: 482E80323A35A54498B8B70FF2B87980042237CF64@azsmsx504.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi:

Is there a way to require and specify a password at the cmd line for a connect? At first glance...

--username foo --password fee

would seem to be what I want. But it just prompts me for a password (after interpreting "fee" as the DB name).

Thanks In Advance

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2009-11-16 23:04:51 Re: specifying a password on the cmd line for db connect
Previous Message Dann Corbit 2009-11-16 22:21:27 Re: Update on Insert