pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Miles <chris_pg002@psychofx.com>
To: Jesse Burkhardt <jesse@skybuilders.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Automated backup problems - pg_dump
Date: Tue, 26 Aug 2003 19:24:18 +0100
Message-ID: <3F4BA5D2.8010805@psychofx.com> (raw)
In-Reply-To: <20030825003812.G79187-100000@megazone.bigpanda.com>
References: <20030825003812.G79187-100000@megazone.bigpanda.com>

Yes the variable is actually: PGPASSWORD

I have a crond pg_dump script (as root) that sets this variable and
dumps with "-U postgres" and uses the variable successfully.
(7.2.4).

Cheers
CM

Stephan Szabo wrote:
> On Sun, 24 Aug 2003, Jesse Burkhardt wrote:
>>I am sure many of you have encountered the problems I am experiencing
>>with automating the pg_dump command from a cron. The problem arises from
>>a failure of this command to use the environmental variable,
>>PG_PASSWORD. (PGUSER, on the other hand, is picked up during command
> 
> I think the environment variable is PGPASSWORD (no underscore) in at least
> 7.3 and above.  Also, it's somewhat depricated in favor of using the
> .pgpass file.

-- 
Chris Miles
http://chrismiles.info/





view thread (5+ messages)

Message-ID: <3F4BA5D2.8010805@psychofx.com>
Permalink:  ../3F4BA5D2.8010805@psychofx.com/
Also on:    postgresql.org/message-id/3F4BA5D2.8010805@psychofx.com

 · 

reply

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: chris_pg002@psychofx.com, jesse@skybuilders.com
  Subject: Re: Automated backup problems - pg_dump
  In-Reply-To: <3F4BA5D2.8010805@psychofx.com>
  References: <20030825003812.G79187-100000@megazone.bigpanda.com> <3F4BA5D2.8010805@psychofx.com>

* 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