Re: PG_DUMP question

From: Alex <alex(at)meerkatsoft(dot)com>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PG_DUMP question
Date: 2003-12-02 08:31:45
Message-ID: 3FCC4DF1.8070105@meerkatsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks,
but I am looking for a way to pass the password to the command rather
than using another config or password file.
I store my config infos in an xml file.
I thought I could set the environment var as suggested on some sites but
it does not seem to be working.
Alex

Alvaro Herrera wrote:

>On Tue, Dec 02, 2003 at 09:31:43AM +0900, Alex wrote:
>
>
>
>>is ther a way to pass a password to the pg_dump command to avoid being
>>prompted for it.
>>I want to execute the dump from a perl or shell script and dont want to
>>open accees for the user in the pg_hba.conf
>>
>>
>
>Use the ~/.pgpass file. It will work for any libpq program, not just
>pg_dump.
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander S 2003-12-02 09:41:30 bug in 7.4
Previous Message Martin Paulďuro 2003-12-02 08:25:23 unsubscribe