From adamodharan@ivesia.com Wed Mar 2 04:40:06 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2CC8A554DD for ; Wed, 2 Mar 2005 04:40:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12147-05 for ; Wed, 2 Mar 2005 04:40:00 +0000 (GMT) Received: from chn-dns.primus-india.net (chn-dns.primus-india.net [203.196.153.7]) by svr1.postgresql.org (Postfix) with ESMTP id D40BF52A67 for ; Wed, 2 Mar 2005 04:39:58 +0000 (GMT) Received: from ivesia52 (vesia-138-190-chn.ivesia.com [203.196.190.138] (may be forged)) by chn-dns.primus-india.net (8.12.8/8.12.8) with SMTP id j222XCfu012621 for ; Wed, 2 Mar 2005 08:03:14 +0530 Message-ID: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> From: "Aravindhan G.D" To: Subject: Scheduling/Automated Jobs in Postgre Date: Wed, 2 Mar 2005 10:09:53 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0025_01C51F0F.FA835A50" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.096 tagged_above=0 required=5 tests=HTML_50_60, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200503/14 X-Sequence-Number: 16512 This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C51F0F.FA835A50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, 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. 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. With Regards, Aravindhan. ------=_NextPart_000_0025_01C51F0F.FA835A50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,
 
I need to do some user = defined jobs=20 when ever the Postgre server gets restarted. These tasks should be = automated one=20 i.e) When ever I restart the server the PL/SQL functions I have = defined=20 should be executed automatically without my intervention. This is to = record some=20 information like Audit Trails and some more.
 
Could any one tell me = how can I=20 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=20 I could get them.
 
With = Regards,
Aravindhan.
------=_NextPart_000_0025_01C51F0F.FA835A50-- From mike@fuhr.org Wed Mar 2 08:09:01 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EEECE563DF for ; Wed, 2 Mar 2005 08:09:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67609-01 for ; Wed, 2 Mar 2005 08:08:53 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id EF2B0563D5 for ; Wed, 2 Mar 2005 08:08:52 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j2288m5X002152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Mar 2005 01:08:51 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j2288mHn047921; Wed, 2 Mar 2005 01:08:48 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j2288mrB047920; Wed, 2 Mar 2005 01:08:48 -0700 (MST) (envelope-from mfuhr) Date: Wed, 2 Mar 2005 01:08:48 -0700 From: Michael Fuhr To: "Aravindhan G.D" Cc: pgsql-admin@postgresql.org Subject: Re: Scheduling/Automated Jobs in Postgre Message-ID: <20050302080847.GA47871@winnie.fuhr.org> References: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/21 X-Sequence-Number: 16519 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/ From cbbrowne@acm.org Wed Mar 2 14:08:03 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CADCA52A5D for ; Wed, 2 Mar 2005 14:08:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69960-08 for ; Wed, 2 Mar 2005 14:07:54 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 0DC345662E for ; Wed, 2 Mar 2005 14:07:54 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id j22E7s7E071897 for ; Wed, 2 Mar 2005 14:07:54 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id j22Do1sD066424 for pgsql-admin@postgresql.org; Wed, 2 Mar 2005 13:50:01 GMT (envelope-from news) From: Christopher Browne X-Newsgroups: pgsql.admin Subject: Re: Scheduling/Automated Jobs in Postgre Date: Wed, 02 Mar 2005 08:23:01 -0500 Organization: cbbrowne Computing Inc Lines: 22 Message-ID: References: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:bSAnsyvzHgdleayHyK6pGrjVzFU= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200503/26 X-Sequence-Number: 16524 adamodharan@ivesia.com ("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 this into whatever script starts up pg_ctl, but only if you decide to use PostgreSQL rather than "Postgre". > 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. There surely is. Use cron(8). But that's only true with PostgreSQL, not with "Postgre". This mailing list addresses PostgreSQL, not Postgre. -- let name="cbbrowne" and tld="gmail.com" in String.concat "@" [name;tld];; http://linuxdatabases.info/info/slony.html Some people are only alive because it is illegal to kill. From decibel@decibel.org Wed Mar 2 20:40:52 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E52A454C94 for ; Wed, 2 Mar 2005 20:40:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88751-09 for ; Wed, 2 Mar 2005 20:40:43 +0000 (GMT) Received: from flake.decibel.org (unknown [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 5B311560ED for ; Wed, 2 Mar 2005 20:40:42 +0000 (GMT) Received: by flake.decibel.org (Postfix, from userid 1001) id E9C7A1C91F; Wed, 2 Mar 2005 14:40:43 -0600 (CST) Date: Wed, 2 Mar 2005 14:40:43 -0600 From: "Jim C. Nasby" To: "Aravindhan G.D" Cc: pgsql-admin@postgresql.org Subject: Re: Scheduling/Automated Jobs in Postgre Message-ID: <20050302204043.GA2209@decibel.org> References: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> X-Operating-System: FreeBSD 4.10-RELEASE-p3 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.145 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/33 X-Sequence-Number: 16531 This is something that comes up every few months. Core is of the opinion that you should just use the tools of your OS. Personally, I think some kind of job system in the database would be very useful, so the last time this came up I created http://pgfoundry.org/projects/pgjob/. No work is being done on it right now, but if this is something you have an interest in you should sign up for the mailing list. On Wed, Mar 02, 2005 at 10:09:53AM +0530, Aravindhan G.D wrote: > Hi All, > > 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. > > 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. > > With Regards, > Aravindhan. -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" From cbbrowne@acm.org Thu Mar 17 05:41:12 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E6AB5569DF for ; Thu, 17 Mar 2005 05:41:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88643-06 for ; Thu, 17 Mar 2005 05:41:10 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 46CCD569CF for ; Thu, 17 Mar 2005 05:41:09 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id j2H5f8Fs090622 for ; Thu, 17 Mar 2005 05:41:09 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id j2H5Mi5G086119 for pgsql-admin@postgresql.org; Thu, 17 Mar 2005 05:22:44 GMT (envelope-from news) From: Christopher Browne X-Newsgroups: pgsql.admin Subject: Re: Scheduling/Automated Jobs in Postgre Date: 17 Mar 2005 05:22:43 GMT Organization: cbbrowne Computing Inc Lines: 15 Message-ID: <39sih3F66n1imU4@individual.net> References: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> X-Draft-From: ("nntp+wolfe:pgsql.admin" 912) X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:bSAnsyvzHgdleayHyK6pGrjVzFU= In-Reply-To: <002801c51ee1$e2c95f50$8b02a8c0@ivesia52> (Aravindhan G. D.'s message of "Wed, 2 Mar 2005 10:09:53 +0530") To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200503/253 X-Sequence-Number: 16751 You could add this into whatever script starts up pg_ctl, but only if you decide to use PostgreSQL rather than "Postgre". > 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. There surely is. Use cron(8). But that's only true with PostgreSQL, not with "Postgre". This mailing list addresses PostgreSQL, not Postgre. -- let name="cbbrowne" and tld="gmail.com" in String.concat "@" [name;tld];; http://linuxdatabases.info/info/slony.html Some people are only alive because it is illegal to kill.