Re: Tables cannot have INSTEAD OF triggers

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Tables cannot have INSTEAD OF triggers
Дата
Msg-id
2170.1427908526@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
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>
Andres Freund  writes:
> On 2015-04-01 12:46:05 -0400, Robert Haas wrote:
>> So, the idea is that INSTEAD OF would behave like BEFORE but the tuple
>> it returns wouldn't actually be inserted?  That wasn't clear to me
>> from the OP, but I guess it would be a reasonable way to go.

> I'm not sure what the OP intended, but to me that's pretty much the only
> reasonable definition of INSTEAD OF for tables that I can think of.

If you have such a trigger, it's impossible to insert any rows, which
means the table doesn't need storage, which means it may as well be a
view, no?  So this still seems to me like a wart not a useful feature.
I think it would create confusion because a table with such a trigger
would act so much unlike other tables.
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Andres Freund
Дата:
FAQ