Re: Scripting issue - Mailing list pgsql-bugs

From hubert depesz lubaczewski
Subject Re: Scripting issue
Date
Msg-id 20090420222431.GA18328@depesz.com
Whole thread Raw
In response to Scripting issue  ("Scott Wells" <Scott.Wells@apollogrp.edu>)
List pgsql-bugs
On Mon, Apr 20, 2009 at 11:08:56AM -0700, Scott Wells wrote:
> I am trying to script a pg_dumpall command set to use in a crontab
> entry.
> The problem I am finding is that the command pg_dumpall seems to be
> ignoring the -W input.

not sure what you mean by -W input. -W is a switch to force tools to ask
for password.

> (I get password prompts on all 4 instances within the DB.)
> It is happening on a Oracle Enterprise Linux 5 server and PostgreSQL
> 8.3.5 as well as 8.3.7

use pgpass file, as described in here:
http://www.postgresql.org/docs/current/interactive/libpq-pgpass.html

Best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

pgsql-bugs by date:

Previous
From: "Scott Wells"
Date:
Subject: Scripting issue
Next
From: Björn Þór Jónsson
Date:
Subject: bitfromint4() in v7.2.3 to bit() in v8.1?