Re: review: CHECK FUNCTION statement

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: review: CHECK FUNCTION statement
Дата
Msg-id 1322669300-sup-8099@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: review: CHECK FUNCTION statement  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: review: CHECK FUNCTION statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Excerpts from Tom Lane's message of mié nov 30 12:53:42 -0300 2011:

> A bigger issue is that once you think about more than one kind of check,
> it becomes apparent that we might need some user-specifiable options to
> control which checks are applied.  And I see no provision for that here.
> This is not something we can add later, at least not without breaking
> the API for the check function --- and if we're willing to break API,
> why not just add some more parameters to the validator and avoid having
> a second function?

How about

CHECK (parse, names=off) FUNCTION foobar(a, b, c)

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: review: CHECK FUNCTION statement
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Review of VS 2010 support patches