Re: trigger functions can only be called as triggers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trigger functions can only be called as triggers
Дата
Msg-id 6946.1250174217@sss.pgh.pa.us
обсуждение исходный текст
Ответ на trigger functions can only be called as triggers  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Is there a reason why the function manager allows calling trigger functions 
> outside of triggers and forces the PLs to catch this case themselves?  Is 
> there a case where calling trigger functions directly is useful?

I think it's a matter of not wanting to slow down *all* function calls
with an error check that's useless for most.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Alpha 1 release notes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: schemapg.h