pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Scheduling Database Tasks
3+ messages / 3 participants
[nested] [flat]

* Scheduling Database Tasks
@ 2000-05-25 14:22  dialFree administration <admin@dialfree.net>
  0 siblings, 1 reply; 3+ messages in thread

From: dialFree administration @ 2000-05-25 14:22 UTC (permalink / raw)
  To: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: Scheduling Database Tasks
@ 2000-05-25 18:24  Nicolas Huillard <nhuillard@ghs.fr>
  0 siblings, 0 replies; 3+ messages in thread

From: Nicolas Huillard @ 2000-05-25 18:24 UTC (permalink / raw)
  To: 'dialFree administration' <admin@dialfree.net>; pgsql-admin

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>>



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Scheduling Database Tasks
@ 2000-05-26 06:56  Reiner Dassing <dassing@wettzell.ifag.de>
  parent: dialFree administration <admin@dialfree.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Reiner Dassing @ 2000-05-26 06:56 UTC (permalink / raw)
  To: dialFree administration <admin@dialfree.net>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-05-26 06:56 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-25 14:22 Scheduling Database Tasks dialFree administration <admin@dialfree.net>
2000-05-26 06:56 ` Reiner Dassing <dassing@wettzell.ifag.de>
2000-05-25 18:24 RE: Scheduling Database Tasks Nicolas Huillard <nhuillard@ghs.fr>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox