From: Aldo Leyva Alvarado <aleyva@medifarma.com.pe>
To: Robby Russell <rrussell@commandprompt.com>
To: pgsql-php@postgresql.org
Subject: Re: Triggers, Rules and email
Date: Fri, 30 Jan 2004 11:00:37 -0500
Message-ID: <001a01c3e74a$33dca440$3d0000c0@pegasus> (raw)
References: <Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com>
<401A7CF0.9020302@commandprompt.com>
Yes, I want to see an example!!!!!!
Aldo Leyva
----- Original Message -----
From: "Robby Russell" <rrussell@commandprompt.com>
To: <pgsql-php@postgresql.org>
Sent: Friday, January 30, 2004 10:49 AM
Subject: Re: [PHP] Triggers, Rules and email
> scott.marlowe typed this on 01/20/2004 09:59 AM:
> > 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
> >
> >
>
> Yes, plPHP can be used for this. If you want an example, let me know and
> I'll post one on the list.
>
> -Robby
>
> --
> #-------------------------------------------------------
> # Robby Russell, | Sr. Administrator / Lead Programmer
> # Command Prompt, Inc. | http://www.commandprompt.com
> # rrussell@commandprompt.com | Telephone: (503) 667.4564
> #-------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
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: aleyva@medifarma.com.pe, rrussell@commandprompt.com
Subject: Re: Triggers, Rules and email
In-Reply-To: <001a01c3e74a$33dca440$3d0000c0@pegasus>
References: <Pine.LNX.4.33.0401201057460.15639-100000@css120.ihs.com> <401A7CF0.9020302@commandprompt.com> <001a01c3e74a$33dca440$3d0000c0@pegasus>
* 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