Re: Trigger with WHEN clause (WIP)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger with WHEN clause (WIP)
Дата
Msg-id 29065.1255617414@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trigger with WHEN clause (WIP)  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: Trigger with WHEN clause (WIP)  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Trigger with WHEN clause (WIP)  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> I think there is a benefit to provide WHEN cluase at least
> for compatibility with other DBMSs, even through we can move
> the expressions into the body of trigger functions.

This seems to me to be a lot of code to accomplish nothing useful.
It will always be the case that any nontrivial logic has to be done
inside the trigger.  And the compatibility argument is entirely
pointless given the lack of compatibility in the trigger function
itself.

-1
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Client application name
Следующее
От: Dave Page
Дата:
Сообщение: Re: Client application name