| From: | Jeff Frost <jeff(at)frostconsultingllc(dot)com> |
|---|---|
| To: | Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: trouble with pg_dumpall |
| Date: | 2008-02-28 02:59:59 |
| Message-ID: | Pine.LNX.4.64.0802271856370.14059@discord.home.frostconsultingllc.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On Wed, 27 Feb 2008, Tena Sakai wrote:
> Hi Jeff,
>
> Thanks for your reply, but I think you might
> have missed an earlier thread. I am afraid
> I have tried what you suggest. Below's my
> previous post.
>
>
> filename=`date +%G%m%d.%w`.gz
> /usr/local/pgsql/bin/pg_dumpall > $filename
>
> Here's what I get back as output is:
>
> Password:
> pg_dumpall: could not connect to database "template1": fe_sendauth: no password supplied
>
> This is not what happened on 8.2.4. I read 8.3.0 man
> page on pg_dumpall. Here's what it told me:
>
> The file .pgpass in a user's home directory or the file referenced
> by PGPASSFILE can contain passwords to be used if the connection
> requires a password (and no password has been specified otherwise).
>
> I have .pgpass in /usr/local/pgsql and when I type
> psql dbname
> It lets me in without asking the password. So I don't
> understand why I get what I get: fe_sendauth: no password supplied
>
Please reply-all and don't top-post. :-)
I bet the $HOME environment variable isn't being set by your cron
implementation. Is this gentoo perhaps? Try putting an echo $HOME in your
script and see if it's defined.
--
Jeff Frost, Owner <jeff(at)frostconsultingllc(dot)com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tena Sakai | 2008-02-28 03:12:34 | Re: trouble with pg_dumpall |
| Previous Message | Tena Sakai | 2008-02-28 02:49:38 | Re: trouble with pg_dumpall |