| From: | Dave Page <dpage(at)pgadmin(dot)org> |
|---|---|
| To: | Mike Christensen <mike(at)kitchenpc(dot)com> |
| Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Need some help setting up pgAgent |
| Date: | 2010-10-18 10:07:17 |
| Message-ID: | AANLkTinmFCKbR8PDyL=zZqeUdLnTKrZVNO7d9Upr2VDp@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Mon, Oct 18, 2010 at 10:46 AM, Mike Christensen <mike(at)kitchenpc(dot)com> wrote:
> Okay I found one that I can use..
>
> One question.. Should the connection string in the script have the
> password for "root" hard coded in it? Or will it use a password from
> ~/.pgpass automatically? If so, what user account will it find the
> .pgpass file under? Thanks!
Have the script start pgagent under the postgres account eg;
su - postgres -c 'p/path/to/pgadmin....'
Then it should be able to use postgres' pgpass file. Don't put the
password in the connection string!
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mike Christensen | 2010-10-18 10:34:45 | Re: Need some help setting up pgAgent |
| Previous Message | Mike Christensen | 2010-10-18 09:46:33 | Re: Need some help setting up pgAgent |