X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1B154D1B8DC for ; Tue, 26 Aug 2003 15:29:07 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 91971-05 for ; Tue, 26 Aug 2003 15:28:37 -0300 (ADT) Received: from mail.psychofx.com (unknown [217.71.230.39]) by svr1.postgresql.org (Postfix) with ESMTP id 69A41D1B897 for ; Tue, 26 Aug 2003 15:28:34 -0300 (ADT) Received: by mail.psychofx.com (Postfix, from userid 10002) id A5739240A6; Tue, 26 Aug 2003 19:27:59 +0100 (BST) Received: from psychofx.com (unknown [217.71.230.212]) by mail.psychofx.com (Postfix) with ESMTP id 2CD1E23BE6; Tue, 26 Aug 2003 19:27:27 +0100 (BST) Message-ID: <3F4BA5D2.8010805@psychofx.com> Date: Tue, 26 Aug 2003 19:24:18 +0100 From: Chris Miles User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jesse Burkhardt Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Automated backup problems - pg_dump References: <20030825003812.G79187-100000@megazone.bigpanda.com> In-Reply-To: <20030825003812.G79187-100000@megazone.bigpanda.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/303 X-Sequence-Number: 10024 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/