From: selkovjr@mcs.anl.gov
To: pgsql-announce@postgreSQL.org
Cc: pgsql-admin@postgreSQL.org
Subject: Sending e-mail from a trigger
Date: Sun, 11 Jun 2000 16:53:55 -0500
Message-ID: <200006112229.RAA10665@mail.xnet.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: selkovjr@mcs.anl.gov, pgsql-announce@postgreSQL.org
Subject: Re: Sending e-mail from a trigger
In-Reply-To: <200006112229.RAA10665@mail.xnet.com>
References: <200006112229.RAA10665@mail.xnet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox