Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id D627747633E for ; Thu, 23 May 2002 10:10:58 -0400 (EDT) Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id A2BD8476272 for ; Thu, 23 May 2002 09:41:10 -0400 (EDT) Received: (qmail 18020 invoked from network); 23 May 2002 13:35:29 -0000 Received: from system29.trade-india-local.com (HELO server) (192.168.0.29) by ptil-236-129-del.primus-india.net with SMTP; 23 May 2002 13:35:29 -0000 Content-Type: text/plain; charset="iso-8859-1" From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: rhema@bhasin.co.in, pgsql-sql@postgresql.org Subject: Re: Date: Thu, 23 May 2002 19:11:03 +0530 X-Mailer: KMail [version 1.4] References: <20020523112720.23101.qmail@vmail1.ebhasin.com> In-Reply-To: <20020523112720.23101.qmail@vmail1.ebhasin.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200205231911.03035.mallah@trade-india.com> X-Archive-Number: 200205/256 X-Sequence-Number: 7891 Hi, Even i would love to hear if there is any such feature. but there is an easy work around, use the unix crontab and -c option of psql to pass the query from the crontab file it self. regds mallah. On Thursday 23 May 2002 04:57 pm, rhema@bhasin.co.in wrote: > hello, > I need to know if there are any database event triggers > in postgres like i want the trigger to run periodically(every day just li= ke > crontab on unix), i need to delete the records in a table automatically > after a period of say 90 days. > > It is possible to create trigger on table before insert or update but if > there are no insertions or updations on the table, the record will remain > in the database. > looking forward for the suggestions. > > Thanx in advance > Hema > > _____________________________________ > Powered by EBHASIN V-Mail Service. > Visit http://www.ebhasin.com > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster --=20 Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.