Re: Is this correct behavior for ON DELETE rule?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is this correct behavior for ON DELETE rule?
Дата
Msg-id 21813.1109433314@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is this correct behavior for ON DELETE rule?  ("Rick Schumeyer" <rschumeyer@ieee.org>)
Список pgsql-general
"Rick Schumeyer" <rschumeyer@ieee.org> writes:
> Would some combination of triggers work instead?

Nope, you can't put triggers on a view, sorry.  In theory a BEFORE
INSERT trigger would be a workable alternative to an ON INSERT rule
for redirecting insertions.  (I think we disallow it at the moment
though.)  But UPDATE and DELETE triggers can't work because the view
doesn't actually contain any physical tuples and so there is nothing
for the triggers to fire on.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Mike Harding
Дата:
Сообщение: Re: Hash aggregates blowing out memory
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: postgresql 8.0 advantages