| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера