Re: How to provide password to pg_dump command ?

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to provide password to pg_dump command ?
Date: 2008-09-09 20:16:32
Message-ID: ga6lj0$d6v$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Emi Lu написа:
> Good morning,
>
> Is there a way that I can pass "pwd" to pg_dump command please?
>
>
> I tried to pg_dump in java, but do not know how to pass password.

Recommended method -
http://www.postgresql.org/docs/current/static/libpq-pgpass.html

Not recommended method -
http://www.postgresql.org/docs/current/static/libpq-envars.html (look
for PGPASSWORD).

--
Milen A. Radev

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ruben Gouveia 2008-09-09 23:20:40 Function Syntax involving pipes and ' marks?
Previous Message Emi Lu 2008-09-09 20:07:14 How to provide password to pg_dump command ?