Re: function to send email with query results - Mailing list pgsql-sql

From Andreas Kretschmer
Subject Re: function to send email with query results
Date
Msg-id 20150418110432.GA12157@tux
Whole thread Raw
In response to function to send email with query results  (Suresh Raja <suresh.rajaabc@gmail.com>)
List pgsql-sql
Suresh Raja <suresh.rajaabc@gmail.com> wrote:

> Hi all:
> 
> I'm looking to write a function to send email with result of a query.    Is it
> possible to send email with in a function.  Any help is appreciated. 

Only with functions written in untrusted languages, for instance pl/sh or
pl/perlU. Not with pure SQL, no with pl/pgsql or similar.

Consider: you can't rollback a conveyed mail. 


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°



pgsql-sql by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: function to send email with query results
Next
From: Jim Nasby
Date:
Subject: Re: [GENERAL] function to send email with query results