> You know, event triggers seem like an awfully good solution to this
> problem. All we'd need is a new event called table_rewrite:
>
> CREATE EVENT TRIGGER my_event_trigger
> ON table_rewrite
> EXECUTE PROCEDURE consider_whether_to_throw_an_error();
Oh, wow, that would be perfect. That also solves the problem of "I
don't care if I rewrite really_small_table, but I do care if I rewrite
really_big_table".
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com