Re: Running OS-level programs from Postgres?

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Running OS-level programs from Postgres?
Дата
Msg-id 20070620200930.GE743@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Re: Running OS-level programs from Postgres?  (Steve Atkins <steve@blighty.com>)
Ответы Re: Running OS-level programs from Postgres?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Jun 20, 2007 at 12:55:23PM -0700, Steve Atkins wrote:
>
> Another approach, and one that can be more robust in the case
> of external failures, is to have the trigger put the message it wants
> to send into a queue table and have an external process that
> monitors the table (via polling or listen/notify) and sends the
> queued mail.

For the record, this is _way_ more robust.  It also prevents your
database from accidentally DoSing your mail server, as it would if
thousands of mail messages were all triggered in a very short period
of time.

A

--
Andrew Sullivan  | ajs@crankycanuck.ca
The very definition of "news" is "something that hardly ever happens."
        --Bruce Schneier

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

Предыдущее
От: Philip Hallstrom
Дата:
Сообщение: Re: Running OS-level programs from Postgres?
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: standard LOB support