Re: pg_dump password - Mailing list pgsql-novice

From Tom Lane
Subject Re: pg_dump password
Date
Msg-id 11743.1158160208@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump password  (Q Beukes <pgsql-novice@list.za.net>)
List pgsql-novice
Q Beukes <pgsql-novice@list.za.net> writes:
> We want to close up the db so people can't alter the database, so we
> thought of using
> a password. The problem now is that we can't have pg_dump run because it
> prompts
> for a password.

Create a ~/.pgpass file for the account pg_dump runs under.
http://www.postgresql.org/docs/8.1/static/libpq-pgpass.html

            regards, tom lane

pgsql-novice by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: problems connecting remote postgresql server
Next
From: Lan Barnes
Date:
Subject: Re: pg_dump password