Re: Time trigger - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Time trigger
Date
Msg-id 20051110121211.GF28217@webserv.wug-glas.de
Whole thread Raw
In response to Time trigger  ("Piechu Piechu" <piechutm@wp.pl>)
List pgsql-general
am  10.11.2005, um 12:46:33 +0100 mailte Piechu Piechu folgendes:
> hello
>
> I'm new in this list, so sorry if my question seems stupid
>
> Is it possible to invoke store procedure because of time, I mean for
> example I want my procedure to be invoked every ten minutes - what
> should I do to reach this goal

You can use the crontab for such thing.

0-59/10 * * * * echo "select * from foo;" | psql test | mail foo@example.com


HTH, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

pgsql-general by date:

Previous
From: Nicolay A Vasiliev
Date:
Subject: Re: PL language selection
Next
From: Tino Wildenhain
Date:
Subject: Re: Time trigger