pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Stanaway <david@netventures.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: Oracle "Jobs" in PostgreSQL
Date: Tue, 12 Feb 2002 15:30:07 +1100
Message-ID: <318BF7A8-1F71-11D6-93F9-0003930FDAB2@netventures.com.au> (raw)
In-Reply-To: <005401c1b37b$0fd23bf0$6c0aa8c0@UNNIKRISHNAN>


On Tuesday, February 12, 2002, at 03:09  PM, Unnikrishnan Menon wrote:

> Hi Andrew,
>
> Iam sorry for being vague. The fact is that i would like to port a few 
> jobs
> created in Oracle to PostgreSQL. These jobs are executed in a time-based
> manner.
> I do not find any option in PostgreSQL which matches the jobs 
> functionality
> of Oracle. The Oracle-to-PG documentation also does not mention 
> anything on
> porting of jobs. I'am running a couple of procedures within packages as 
> jobs
> in Oracle.
> could help guide me into porting the same into Postgres.


You may need to trigger these jobs externally with the host systems 
services.
EG: cron or at on Unix
or: at on NT

You can execute scripts with psql

You may like to have a look at the cron tasks installed by the 
postgresql package (At least on Debian)

/etc/cron.d/postgresql
0 4 * * * postgres      [ -x /usr/lib/postgresql/bin/do.maintenance ] && 
/usr/lib/postgresql/bin/do.maintenance -a


==============================
David Stanaway
Personal: david@stanaway.net
Work: david@netventures.com.au




view thread (6+ messages)  latest in thread

Message-ID: <318BF7A8-1F71-11D6-93F9-0003930FDAB2@netventures.com.au>
Permalink:  ../318BF7A8-1F71-11D6-93F9-0003930FDAB2@netventures.com.au/
Also on:    postgresql.org/message-id/318BF7A8-1F71-11D6-93F9-0003930FDAB2@netventures.com.au

 · 

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: david@netventures.com.au
  Subject: Re: Oracle "Jobs" in PostgreSQL
  In-Reply-To: <318BF7A8-1F71-11D6-93F9-0003930FDAB2@netventures.com.au>
  References: <005401c1b37b$0fd23bf0$6c0aa8c0@UNNIKRISHNAN> <318BF7A8-1F71-11D6-93F9-0003930FDAB2@netventures.com.au>

* 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