Re: ERROR action extension for rules? - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: ERROR action extension for rules?
Date
Msg-id Pine.LNX.4.58.0404210908360.6454@sablons.cri.ensmp.fr
Whole thread Raw
In response to Re: ERROR action extension for rules?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> >      CREATE RULE PasTouche AS ON UPDATE TO foo
> >      WHERE old.locked=TRUE
> >      DO INSTEAD ERROR;
>
> This would be sensible if rules were actually reasonable substitutes for
> triggers, but they are not.
>
> If you check the archives you will find many many cases where people
> tried to do this sort of thing, and got burned by the fundamental
> semantic differences ...

Ok, I'll look into that. Thanks for the pointer.

-- 
Fabien Coelho - coelho@cri.ensmp.fr


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Duplicate variable declared?
Next
From: "Matthew T. O'Connor"
Date:
Subject: Re: pg_autovacuum crashes when query fails for temp tables