specifying a password on the cmd line for db connect - Mailing list pgsql-general

From Gauthier, Dave
Subject specifying a password on the cmd line for db connect
Date
Msg-id 482E80323A35A54498B8B70FF2B87980042237CF64@azsmsx504.amr.corp.intel.com
Whole thread Raw
Responses Re: specifying a password on the cmd line for db connect  (Greg Smith <greg@2ndquadrant.com>)
Re: specifying a password on the cmd line for db connect  (Raymond O'Donnell <rod@iol.ie>)
List 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

 

pgsql-general by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: Update on Insert
Next
From: Greg Smith
Date:
Subject: Re: specifying a password on the cmd line for db connect