From: Bruce Momjian <pgman@candle.pha.pa.us>
To: David F. Skoll <dfs@roaringpenguin.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Passwords and batch processes (was Re: Problem with Dump)
Date: Fri, 23 Aug 2002 13:20:13 -0400 (EDT)
Message-ID: <200208231720.g7NHKDC11175@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0208231146100.2481-100000@shishi.roaringpenguin.com>
7.3 will have a password file read from the user's home directory that
will handle this; it can support multiple usernames in the same file.
PGPASSWORD is documented, but in libpq, which is clearly not enough
because something effects libpq by default is used by all the apps that
use libpq, which is almost everything.
---------------------------------------------------------------------------
David F. Skoll wrote:
> On Fri, 23 Aug 2002, Ian Barwick wrote:
>
> > AFAIK utilities such as pg_dump prompt for the password but
> > won't accept it as a command line option, which makes password-based
> > authentication almost unusable when calling these utilities from a script.
>
> This really should be Question #1 in the FAQ.
>
> You can set the environment variable PGPASSWORD to the password, and avoid
> prompts. This assumes the same username/password has access to all the
> databases for pg_dumpall.
>
> I didn't find this documented anywhere. It probably is, but somewhere
> buried...
>
> --
> David.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pgman@candle.pha.pa.us, dfs@roaringpenguin.com
Subject: Re: Passwords and batch processes (was Re: Problem with Dump)
In-Reply-To: <200208231720.g7NHKDC11175@candle.pha.pa.us>
References: <Pine.LNX.4.44.0208231146100.2481-100000@shishi.roaringpenguin.com> <200208231720.g7NHKDC11175@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox