Robert Haas <robertmh...@gmail.com> writes: > On Tue, Dec 14, 2010 at 9:42 AM, Itagaki Takahiro > <itagaki.takah...@gmail.com> wrote: >> We need RULEs or INSTEAD OF TRIGGERs to support updatable foreign tables.
> We do? Why can't the support for updating foreign tables be built-in > rather than trigger-based? It *has* to be built in. What exactly would you imagine a rule or trigger is going to do? It won't have any below-SQL-level access to the foreign table with which it could issue some magic command that's not spelled UPDATE; and even if it did, why wouldn't you just spell that command UPDATE? There would be value in being able to fire triggers on foreign-table updates just like you can on local tables. It might well be that that would just fall out of the implementation, since triggers are handled at the top level of the executor, which shouldn't need to know the difference. But if it doesn't fall out easily, I don't mind postponing that feature till later. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers