Received: from www-uk-05.digiserve.com ([195.97.231.11]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2Q64Kw33805 for ; Mon, 26 Mar 2001 01:04:20 -0500 (EST) (envelope-from dev@archonet.com) Received: from mainbox.archonet.com (mwynhau.demon.co.uk [193.237.186.96]) by www-uk-05.digiserve.com (8.9.1/8.9.1) with ESMTP id HAA24497; Mon, 26 Mar 2001 07:05:15 +0100 (BST) Received: from client (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with SMTP id 26F232A687; Sun, 25 Mar 2001 21:23:32 +0100 (BST) Message-ID: <007f01c0b569$740a4ec0$1001a8c0@archonet.com> From: "Richard Huxton" To: "Mohamed ebrahim" , References: <20010325064905.22963.qmail@web1004.mail.yahoo.com> Subject: Re: Help Date: Sun, 25 Mar 2001 21:23:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200103/510 X-Sequence-Number: 2181 From: "Mohamed ebrahim" > Hi, > > I am a user postgresql. I want to update a table > automatically when we reach monthend. i.e i want to > update some table on 31 of every month automatically > without any user attention. I want to know how to do > this. If anyone knows how to do this please mail me. i > will be ever thankfull to him I'm presuming that you are on some kind of unix-like system. If so, check the "cron" system (man cron, man crontab) - use this to run a script at a set time each month - the script can then update your database. This can be as simple as placing a script into /etc/cron.monthly/ on some systems (e.g. Linux Redhat) but in any case is not too complicated. PS - it is usually easier to do this early on the first day of each month (every month has a day 1, not all have a day 31). - Richard Huxton