Re: Instead of Triggers

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: chelliah gabriel - Sun Microsystems - Bangalore India <Chelliah(dot)Gabriel(at)Sun(dot)COM>, pgsql-general(at)postgresql(dot)org
Subject: Re: Instead of Triggers
Date: 2006-10-29 16:27:12
Message-ID: 20061029162712.GC2388@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr wrote:
> On Fri, Oct 27, 2006 at 05:49:19PM +0530, chelliah gabriel - Sun Microsystems - Bangalore India wrote:
> > Does PG support Instead of Triggers?.
>
> PostgreSQL has INSTEAD OF rules.

It also has the ability to prevent the execution of the action which
triggered the, um, trigger (by returning NULL in a BEFORE/FOR EACH ROW
trigger), while executing a different action (say, inserting in a
different table).

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bobus 2006-10-29 16:32:12 fetching unique pins in a high-transaction environment...
Previous Message Alvaro Herrera 2006-10-29 16:25:06 Re: Modifying SQL parser with extensions?