Re: Combining insert rules on views with functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Combining insert rules on views with functions
Дата
Msg-id 23729.1442463244@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Combining insert rules on views with functions  (Bastiaan Olij <bastiaan@basenlily.me>)
Ответы Re: Combining insert rules on views with functions  (Bastiaan Olij <bastiaan@basenlily.me>)
Список pgsql-novice
Bastiaan Olij <bastiaan@basenlily.me> writes:
> Would a before insert trigger work on a view as well?

Ah, sorry, wasn't paying close-enough attention.

For a view, you can only provide an INSTEAD OF trigger, and that feature
only exists in fairly recent PG releases.  But if you're running such a
release then I recommend looking into that way.  Rules are, um, not the
best part of Postgres.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Combining insert rules on views with functions
Следующее
От: Bastiaan Olij
Дата:
Сообщение: Re: Combining insert rules on views with functions