X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 20B50D1E8D7 for ; Tue, 20 Jan 2004 18:03:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89066-09 for ; Tue, 20 Jan 2004 14:03:05 -0400 (AST) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id DDED7D1E8C7 for ; Tue, 20 Jan 2004 14:02:39 -0400 (AST) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id i0KI1GdZ022315; Tue, 20 Jan 2004 11:01:16 -0700 (MST) Date: Tue, 20 Jan 2004 10:59:05 -0700 (MST) From: "scott.marlowe" To: Paul Cc: Subject: Re: Triggers, Rules and email In-Reply-To: <400D601F.5040606@truswan.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/22 X-Sequence-Number: 2538 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