Re: PG_DUMP question

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

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.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"I call it GNU/Linux. Except the GNU/ is silent." (Ben Reiter)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Randal L. Schwartz 2003-12-02 02:29:18 Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL
Previous Message Alvaro Herrera 2003-12-02 01:16:26 Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL