Re: poll: CHECK TRIGGER?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: poll: CHECK TRIGGER?
Дата
Msg-id CA+TgmoYKwsx-JgxYCmkLO9RaoEbc5pgyWbNrbz+Oi0fUJ4GHjA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: poll: CHECK TRIGGER?  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: poll: CHECK TRIGGER?
Re: poll: CHECK TRIGGER?
Re: poll: CHECK TRIGGER?
Список pgsql-hackers
On Sat, Mar 3, 2012 at 9:23 PM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Uh!  Now that I read this I realize that what you're supposed to give to
> CHECK TRIGGER is the trigger name, not the function name!  In that
> light, using CHECK FUNCTION for this doesn't make a lot of sense.
>
> Okay, CHECK TRIGGER it is.

I confess to some bafflement about why we need dedicated syntax for
this, or even any kind of core support at all.  What would be wrong
with defining a function that takes regprocedure as an argument and
does whatever?  Sure, it's nicer syntax, but we've repeatedly rejected
patches that only provided nicer syntax on the grounds that syntax is
not free, and therefore syntax alone is not a reason to change the
core grammar.  What makes this case different?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: review: CHECK FUNCTION statement
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: poll: CHECK TRIGGER?