Re: About pg_dump

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Jason Earl <jdearl(at)yahoo(dot)com>
Cc: Aldo Vadillo Batista <avadillo(at)ulpgc(dot)es>, pgsql-general(at)postgresql(dot)org
Subject: Re: About pg_dump
Date: 2001-06-28 21:34:19
Message-ID: 200106282134.f5SLYJ5U011780@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jason Earl wrote:
>
>It looks like setting the PGUSER and PGPASSWORD
>environment variables does the trick. I don't know
>where that is in the documentation (PGUSER is in the
>psql man page, but I wasn't able to find PGPASSWORD).
>
>So something like:
>
>PGUSER='postgres'
>PGPASSWORD='secret'
>export PGUSER PGPASSWORD
>
>pg_dump -h mydatahost mydatabase -t mytable
>
>Seems work just like you would expect.

However, this is not secure, because the e output format option to ps can be
used to inspect the environment, thus revealing the password.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"The Spirit of the Lord is upon me, because he hath
anointed me to preach the gospel to the poor; he hath
sent me to heal the brokenhearted, to preach
deliverance to the captives, and recovering of sight
to the blind, to set at liberty them that are
bruised..." Luke 4:18

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2001-06-28 21:57:21 Re: Weird error
Previous Message Peter Eisentraut 2001-06-28 21:13:23 Re: unicode regular insensitive matching