From: Michael Fuhr <mike@fuhr.org>
To: Aravindhan G.D <adamodharan@ivesia.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Scheduling/Automated Jobs in Postgre
Date: Wed, 2 Mar 2005 01:08:48 -0700
Message-ID: <20050302080847.GA47871@winnie.fuhr.org> (raw)
In-Reply-To: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52>
References: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52>
On Wed, Mar 02, 2005 at 10:09:53AM +0530, Aravindhan G.D wrote:
> I need to do some user defined jobs when ever the Postgre server
> gets restarted. These tasks should be automated one i.e) When ever
> I restart the server the PL/SQL functions I have defined should be
> executed automatically without my intervention. This is to record
> some information like Audit Trails and some more.
You could add an appropriate command to your PostgreSQL startup
script.
> Could any one tell me how can I implement this in Postgre. Is
> there any concept like "Scheduled Jobs" in Postgre. If so pls.
> provide me with related informations or the links from where I could
> get them.
PostgreSQL doesn't have a scheduler -- most operating systems have
one (e.g., cron on Unix-like systems), so that's what people use.
(BTW, it's "PostgreSQL" or "Postgres", not "Postgre".)
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
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-admin@postgresql.org
Cc: mike@fuhr.org, adamodharan@ivesia.com
Subject: Re: Scheduling/Automated Jobs in Postgre
In-Reply-To: <20050302080847.GA47871@winnie.fuhr.org>
References: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> <20050302080847.GA47871@winnie.fuhr.org>
* 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