Received: from e009.paris-88.cybercable.fr (IDENT:root@e009.paris-88.cybercable.fr [212.198.88.9]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA46475 for ; Thu, 25 May 2000 14:25:26 -0400 (EDT) (envelope-from nhuillard@ghs.fr) Received: from agen.int.ghs (agen.int.ghs [192.168.200.21]) by e009.paris-88.cybercable.fr (8.8.7/8.8.7) with SMTP id UAA27025; Thu, 25 May 2000 20:24:32 +0200 Received: by agen.int.ghs with Microsoft Mail id <01BFC687.3BFD64D0@agen.int.ghs>; Thu, 25 May 2000 20:24:31 +0200 Message-ID: <01BFC687.3BFD64D0@agen.int.ghs> From: Nicolas Huillard To: "'dialFree administration'" , "pgsql-admin@postgresql.org" Subject: RE: Scheduling Database Tasks Date: Thu, 25 May 2000 20:24:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id OAA46608 X-Archive-Number: 200005/29 Relying of fine-grained time for sheduling tasks is usually a bad idea... If for some reason the previous task will take longer, you will load your server with the next one, which will take even longer, and over-load it with the following one... You can rely on cron, and serialize your tasks, using the standard Linux /etc/cron.hourly /etc/cron.daily scheme : put your scripts in these directories, and tasks will be simply scheduled, without interfering... Nicolas huillard -----Message d'origine----- De: dialFree administration [SMTP:admin@dialfree.net] Date: jeudi 25 mai 2000 16:23 À: pgsql-admin@postgresql.org Objet: [ADMIN] Scheduling Database Tasks Hi there. I am a PostgreSQL newbie recently rescued from the depths of despair (MS SQL Server). In this state however I find my self pining for some of the functionality I have become accustomed too. We have a number of tasks that we like to perform using our database like sending emails to folk or billing them or generating invoices. MS SQL Server has a Jobs interface as part of it's database management 'suite' that allows various types of scripts (SQL, Active X) to be performed with fine granularity (1 Second and up). Does PsotsgreSQL have any similar functionality? Crontab does not provide the granularity we require (3 seconds or so for some of our tasks). We are also investigating Expect. If this functionality is not available can it be created efficiently with any of the PL/tcl etc. scripting/functional languages? Thanks for your time. -Ian Ian Marshall ian@talarion.com www.talarion.com (617) 527-1994 << Fichier: ATT00023.html>>