Re: specifying a password on the cmd line for db connect

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: specifying a password on the cmd line for db connect
Date: 2009-11-26 10:46:18
Message-ID: helm9q$g0k$3@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2009-11-16, Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com> wrote:
> --_000_482E80323A35A54498B8B70FF2B87980042237CF64azsmsx504amrc_
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> Hi:
>
> Is there a way to require and specify a password at the cmd line for a conn=
> ect? At first glance...

PGPASSWORD=fee psql --username foo ...

><html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
> hemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

for winders

set PGPASSWORD=fee
psql --username foo ....

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2009-11-26 10:48:17 Re: specifying a password on the cmd line for db connect
Previous Message Craig Ringer 2009-11-26 07:29:38 Re: Wiki page on vacuum full