pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Paul <pauljw@truswan.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Triggers, Rules and email
Date: Tue, 20 Jan 2004 10:59:05 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com> (raw)
In-Reply-To: <400D601F.5040606@truswan.com>

On Tue, 20 Jan 2004, Paul wrote:

> Anyone know if I can create a trigger or a rule in Pgsql that will send 
> an email in the event of an attempt to update a database field no-one 
> should be updating?

Sure, that would involve installing the pl language of your choice as an 
untrusted language.  PHP can be installed that way as a pl, btw, then you 
can just use the mail() trigger function in it.

http://www.commandprompt.com/entry.lxp?lxpe=294




view thread (5+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com

 · 

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 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-php@postgresql.org
  Cc: scott.marlowe@ihs.com, pauljw@truswan.com
  Subject: Re: Triggers, Rules and email
  In-Reply-To: <Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com>
  References: <400D601F.5040606@truswan.com> <Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.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