Re: Tables cannot have INSTEAD OF triggers
От
Robert Haas
Тема
Re: Tables cannot have INSTEAD OF triggers
Дата
Msg-id
CA+TgmobeyBfSc1xY=cYxGoL3y_M_nCSZ2nzHYCzJx61bbtP2Kg@mail.gmail.com
Ответ на
Re: Tables cannot have INSTEAD OF triggers (Tom Lane)
Список
Дерево обсуждения
Tables cannot have INSTEAD OF triggers Aliouii Ali <aliouii.ali@aol.fr>
Re: Tables cannot have INSTEAD OF triggers Robert Haas <robertmhaas@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Andres Freund <andres@2ndquadrant.com>
Re: Tables cannot have INSTEAD OF triggers Robert Haas <robertmhaas@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Andres Freund <andres@anarazel.de>
Re: Tables cannot have INSTEAD OF triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: Tables cannot have INSTEAD OF triggers Andres Freund <andres@anarazel.de>
Re: Tables cannot have INSTEAD OF triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: Tables cannot have INSTEAD OF triggers Andres Freund <andres@anarazel.de>
Re: Tables cannot have INSTEAD OF triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: Tables cannot have INSTEAD OF triggers Robert Haas <robertmhaas@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: Tables cannot have INSTEAD OF triggers Dean Rasheed <dean.a.rasheed@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Peter Eisentraut <peter_e@gmx.net>
Re: Tables cannot have INSTEAD OF triggers Andres Freund <andres@anarazel.de>
Re: Tables cannot have INSTEAD OF triggers Robert Haas <robertmhaas@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Dean Rasheed <dean.a.rasheed@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Dean Rasheed <dean.a.rasheed@gmail.com>
Re: Tables cannot have INSTEAD OF triggers Aliouii Ali <aliouii.ali@aol.fr>
Re: Tables cannot have INSTEAD OF triggers Alvaro Herrera <alvherre@2ndquadrant.com>
On Wed, Apr 1, 2015 at 1:56 PM, Tom Lane wrote: > Andres Freund writes: >> On 2015-04-01 13:29:33 -0400, Tom Lane wrote: >>> WHEN won't help; if there are any INSTEAD OF triggers, no insert will >>> happen, whether the triggers actually fire or not. > >> Well, right now it doesn't work at all. It seems pretty reasonable to >> define things so that the insert happens normally if there's no matching >> INSTEAD OF trigger. > > It would absolutely *not* be reasonable for WHEN conditions for triggers > on tables to work completely differently than they do for triggers on > views. That ship's sailed. Clue me in, because I'm confused. If no trigger fires, we do whatever an object of that type would normally do in the absence of any trigger, no? For a view, that's error out; for a table, that's perform the action on the underlying data. That doesn't seem terribly unprincipled. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления