Anonymous code blocks vs CREATE LANGUAGE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Anonymous code blocks vs CREATE LANGUAGE
Дата
Msg-id 13399.1253640378@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Anonymous code blocks vs CREATE LANGUAGE  (Robert Haas <robertmhaas@gmail.com>)
Re: Anonymous code blocks vs CREATE LANGUAGE  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
I'm going through the anonymous-code-blocks patch now.  There are some
things missing, notably the ability to create a language with an
anonymous-code-block handler.  The only way you can do it is to have
a pg_pltemplate entry, which is certainly not good enough for languages
not distributed with the core.  The obvious solution is to add an
optional clause "INLINE function_name" to CREATE LANGUAGE, paralleling
the VALIDATOR clause.  This'd require adding INLINE as a keyword.
(I assume it could be an unreserved keyword, but haven't actually tried
yet.)  Does anyone object to that plan, or want to propose a different
keyword?

Also, I'm pretty strongly tempted to get rid of the obsolete LANCOMPILER
option while at it, and thereby remove that keyword.  That option hasn't
even been documented since 7.1, and didn't do anything useful for
several versions before that.  So it's pretty hard to believe anyone's
still using it.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Hot Standby 0.2.1
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: [PATCH] Largeobject access controls