pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <mha@sollentuna.net>
To: Daniel Caune <daniel.caune@ubisoft.com>
To: Owen Jacobson <ojacobson@osl.com>
To: pgsql-sql@postgresql.org
Subject: Re: Does PostgreSQL support job?
Date: Thu, 2 Feb 2006 09:49:32 +0100
Message-ID: <6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se> (raw)

> > > 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



view thread (16+ messages)  latest in thread

Message-ID: <6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se>
Permalink:  ../6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se/
Also on:    postgresql.org/message-id/6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: mha@sollentuna.net, daniel.caune@ubisoft.com, ojacobson@osl.com
  Subject: Re: Does PostgreSQL support job?
  In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se>
  References: <6BCB9D8A16AC4241919521715F4D8BCE6C7F94@algol.sollentuna.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox