From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | "Daniel Caune" <daniel(dot)caune(at)ubisoft(dot)com>, "Owen Jacobson" <ojacobson(at)osl(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Does PostgreSQL support job? |
Date: | 2006-02-02 08:49:32 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> > > I try to find in the documentation whether PostgreSQL
> supports job,
> > > but I miserably failed. Does PostgreSQL support job? If
> not, what
> > > is the mechanism mostly adopted by PostgreSQL administrators for
> > > running jobs against PostgreSQL? I was thinking about using
> > > cron/plsql/sql-scripts on Linux.
> >
> > The answer really depends on what you mean by "jobs". If
> you have a
> > database task that can be expressed as a series of commands with no
> > interaction involved, you can just put those commands in a file
> > (your-job-
> > name.sql) and run it using psql and cron:
> >
> > # replace leading stars with cron time settings
> > * * * * * psql your-database -i your-job-name.sql
> >
>
> Yes, that's it. A job is a task, i.e. set of statements,
> which is scheduled to run against a RDBMS at periodical
> times. Some RDBMS, such as SQL Server and Oracle, support
> that feature, even if such a feature is managed differently
> from a RDBMS to another.
You could look at pgagent, which comes with pgAdmin3
(http://www.pgadmin.org/docs/1.4/pgagent.html) It does some scheduling
that's a lot more advanced than you get from plain cron. And nice
pgadmin integrated management of course.
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | christian.michels | 2006-02-02 08:49:42 | Re: executing dynamic commands |
Previous Message | Padam J Singh | 2006-02-02 06:24:32 | Function Dependency |