Sending e-mail from a trigger

Поиск
Список
Период
Сортировка
От selkovjr@mcs.anl.gov
Тема Sending e-mail from a trigger
Дата
Msg-id 200006112229.RAA10665@mail.xnet.com
обсуждение исходный текст
Список pgsql-admin
I haven't paid much attention to the discussions of SPI, but I
remember seeing questions about the server-side system tasks in the
trigger context, among which sending mail was the most frequent.

I am not aware whether such questions were sufficiently answered in
the lists, so when I had to write my first ever trigger yesterday, I
felt like I was on my own with the system tasks (although the triggers
and plpgsql are explained very well in the docs). So, here's my take on e-mail:


http://wit.mcs.anl.gov/~selkovjr/pg_extensions/contrib.tgz

(see the README in mail/)


I believe it should be trivial to do other tasks in a similar way,
using sockets and rsh. At least, it is better to do it that way than
fork the backend.

--Gene

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

Предыдущее
От: "Rainer Mager"
Дата:
Сообщение: query buffer max length of 16384 exceeded
Следующее
От: Dirk Heinrichs
Дата:
Сообщение: Re: Importing table from mysql