From admin@dialfree.net Thu May 25 14:22:59 2000 Received: from bodeca.talarion.com (mail.talarion.com [209.224.141.78]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA52727 for ; Thu, 25 May 2000 10:22:59 -0400 (EDT) (envelope-from admin@dialfree.net) Received: from edinburgh (h00a0cc3a2b0f.ne.mediaone.net [24.147.219.59]) by bodeca.talarion.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id LT2338K6; Thu, 25 May 2000 10:24:33 -0400 From: "dialFree administration" To: Subject: Scheduling Database Tasks Date: Thu, 25 May 2000 10:22:58 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01BFC633.32B3A910" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Archive-Number: 200005/28 This is a multi-part message in MIME format. ------=_NextPart_000_0006_01BFC633.32B3A910 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 ------=_NextPart_000_0006_01BFC633.32B3A910 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

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 t= hem or generating invoices.

 <= /span>

MS SQL Server has a Jobs interface as part of it’s database ma= nagement ‘suite’ that allows various types of scripts (SQL, Active X) to be performed with f= ine granularity (1 Second and up). Does PsotsgreSQL have any similar functional= ity?

 <= /span>

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. scr= ipting/functional languages?

 <= /span>

Thanks for your time.

 <= /span>

-Ian<= /font>

 <= /span>

Ian Marshal= l<= /span>

ian@talario= n.com<= /span>

www.talario= n.com<= /span>

(617) 527-1= 994<= /span>

 <= ![endif]>

------=_NextPart_000_0006_01BFC633.32B3A910-- From nhuillard@ghs.fr Thu May 25 18:25:26 2000 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>> From dassing@wettzell.ifag.de Fri May 26 06:56:54 2000 Received: from tom.wettzell.ifag.de (tom.wettzell.ifag.de [193.174.166.191]) by hub.org (8.9.3/8.9.3) with ESMTP id CAA94151 for ; Fri, 26 May 2000 02:56:54 -0400 (EDT) (envelope-from dassing@wettzell.ifag.de) Received: from wettzell.ifag.de (john.wettzell.ifag.de [193.174.166.33]) by tom.wettzell.ifag.de (8.9.3/8.9.3) with ESMTP id GAA32478; Fri, 26 May 2000 06:56:18 GMT Message-ID: <392E2011.B56347ED@wettzell.ifag.de> Date: Fri, 26 May 2000 08:56:17 +0200 From: Reiner Dassing Organization: BKG-Wettzell X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: dialFree administration CC: pgsql-admin@postgresql.org Subject: Re: Scheduling Database Tasks References: Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Archive-Number: 200005/33 Hello Ian! Nicolas Huillard proposed the use of cron based scheduling of jobs. This approach will overload you postgres server. There is another solution, which I found, will give you the granularity you will need: you can combine cron based scheuling with the ability of batch job based processing. You can set up process queues which will allow to limit the number of concurrent jobs running in this queue. For further information, please contact http://www.gnqs.org -- Mit freundlichen Gruessen / With best regards Reiner Dassing