Re: mail alert

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: mail alert
Дата
Msg-id h60vnp$h8t$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на mail alert  (Jan Verheyden <jan.verheyden@uz.kuleuven.ac.be>)
Список pgsql-sql
On 2009-08-11, Jan Verheyden <jan.verheyden@uz.kuleuven.ac.be> wrote:
>
> Hi All,
>
> I was looking in what way it's possible to alert via mail when some conditi=
> ons are true in a database.
>
> Thanks in advance!

Assuming you mean email, and not ink on paper (hmm, OTOH you could load
postcards into a printer....)

you could do this using NOTIFY and a listener written in some other
langauge,  notify is really neat.

or possibly invoke mail(1) with a plpythonu or C function,

or as superuser you can write a file (using copy ...) and arrange for something else to
look, find it, and mail it.

arbitrary file contents are possible with copy: 

COPY (SELECT NULL) TO myfile_name WITH NULL AS myfile_contents;




В списке pgsql-sql по дате отправления:

Предыдущее
От: "Relyea, Mike"
Дата:
Сообщение: Re: simple? query
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: mail alert