Re: ALTER TABLE ... NOREWRITE option - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: ALTER TABLE ... NOREWRITE option
Date
Msg-id 50BFA3D5.5050909@agliodbs.com
Whole thread Raw
In response to Re: ALTER TABLE ... NOREWRITE option  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
> 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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Dumping an Extension's Script
Next
From: Andres Freund
Date:
Subject: Re: json accessors