Re: Need psql send email

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Need psql send email
Дата
Msg-id 505B12CD.9040606@ringerc.id.au
обсуждение исходный текст
Ответ на Re: Need psql send email  (Martin French <Martin.French@romaxtech.com>)
Ответы Re: Need psql send email  (Martin French <Martin.French@romaxtech.com>)
Список pgsql-general
On 09/20/2012 08:40 PM, Martin French wrote:
>
> Both of these work fine provided PL/PerlU is installed and the server is
> properly configured on the network, and that there is a valid SMTP mail
> host to receive.

The 1st one seems OK in a scary-from-a-security-standpoint kind of way.

The 2nd, not so much. See
   http://stackoverflow.com/questions/12002662/psql-trigger-send-email

Imagine if the DNS goes wonky. Do you want all your backends tied up in
DNS lookups? Or timing-out TCP connections?

BTW, pavithra, check out http://brandolabs.com/pgmail if you really want
to do it in the database.

--
Craig Ringer


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

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Re: RFE: Column aliases in WHERE clauses
Следующее
От: Martin Gainty
Дата:
Сообщение: Re: Need psql send email