agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: function to send email with query results
Date: Sat, 18 Apr 2015 13:04:32 +0200
Message-ID: <20150418110432.GA12157@tux> (raw)
In-Reply-To: <CAJP7dtCrT1C9S0g9haYVy=q01-bADZ2apJqS7avjT_-kScbO6w@mail.gmail.com>
References: <CAJP7dtCrT1C9S0g9haYVy=q01-bADZ2apJqS7avjT_-kScbO6w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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°
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (6+ messages) latest in thread
Message-ID: <20150418110432.GA12157@tux>
Permalink: ../20150418110432.GA12157@tux/
Also on: postgresql.org/message-id/20150418110432.GA12157@tux
reply
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: akretschmer@spamfence.net
Subject: Re: function to send email with query results
In-Reply-To: <20150418110432.GA12157@tux>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox