Re: AW: [HACKERS] triggers, views and rules (not instead) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: AW: [HACKERS] triggers, views and rules (not instead)
Date
Msg-id 199802201915.OAA06977@candle.pha.pa.us
Whole thread Raw
In response to AW: [HACKERS] triggers, views and rules (not instead)  (Zeugswetter Andreas SARZ <Andreas.Zeugswetter@telecom.at>)
List pgsql-hackers
> >
> Ok, to sum it up:
>     1. We need and want the select part of the rewrite rules.
>     2. for the insert/update/delete rules the old instance rules system
>         was much more appropriate. TODO: dig up the old code
>         and merge it with the current trigger Implementation
>             it must be pretty much the wanted functionality (it
> supported sql)
>         3. the CURRENT keyword in the i/u/d rewrite rules is stupid
> and should be disabled
>            destroyed and burned in hell
>         4. To stick to the mainstream we should enhance the trigger
> syntax,
>             and forget the rule stuff for i/u/d
>
>         create trigger passwd_utr
>         ..........
>         referencing old as o new as n
>           for each row (statement, statement, statement, procedure,
> ...... all PL/pgSQL syntax allowed );
>         -- with a syntax to modify the new tuple in memory

This all sounds good to me.  Let's do it soon.  I like the removal of
i/u/d rewrite so we can give people something that will work, and not
have all those gray areas of 'it works here, but not here.'

--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Running pgindent
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] group by problem