From: | "Kevin Crenshaw" <kcrenshaw(at)viscient(dot)com> |
---|---|
To: | "'Richard Broersma Jr'" <rabroersma(at)yahoo(dot)com>, "'Novice Postgresql-list'" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Scheduled Job at PostgreSQL |
Date: | 2006-04-07 15:33:27 |
Message-ID: | 20060407153331.4780111F690D@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Richard,
In a windows environment there are a couple of different ways you could go.
1. You could write a windows service using the .net language of your choice
to poll the database and send an email for you. 2. You could write a script
to check the database and set up a scheduled task (similar to a cron job) to
run the script at a specified interval.
I'm sure there are other options available, but these two are probably the
most straight forward.
HTH,
Kevin
-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of Richard Broersma Jr
Sent: Friday, April 07, 2006 1:41 AM
To: Novice Postgresql-list
Subject: Re: [NOVICE] Scheduled Job at PostgreSQL
In BSD/Linux systems this is strait forward. Does Windows have any features
similar to a cron
daemon? I assume that DOS can be used as scripting language. :-/
Regards,
--- "A. Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> wrote:
> am 06.04.2006, um 21:53:54 -0700 mailte shakil tanvir folgendes:
> > I would like to know if similar thing can be done in PostgreqSQL, that
> > is whether pgsql can have scheduled database job and if there any
> > stored procedure which will send email automatically. If there is no
>
> No.
>
>
> > such facility then any idea, suggestion of how to implement it will
> > help a lot!
>
> You can use the CRON for such jobs. And you can write a sql-script with
> contains your SQL-Code, executed this with psql -f <your_script> and send
> email from within this shell-script.
>
>
> HTH, Andreas
> --
> Andreas Kretschmer (Kontakt: siehe Header)
> Heynitz: 035242/47215, D1: 0160/7141639
> GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
> === Schollglas Unternehmensgruppe ===
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
From | Date | Subject | |
---|---|---|---|
Next Message | Moginraj Mohandas | 2006-04-08 07:55:25 | out or memory error |
Previous Message | Michael Glaesemann | 2006-04-07 08:52:08 | Re: Foreign keys and inheritance |