Re: Attention PL authors: want to be listed in template table?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Attention PL authors: want to be listed in template table?
Дата
Msg-id 19328.1126029623@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Attention PL authors: want to be listed in template table?  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Attention PL authors: want to be listed in template table?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> So your proposal is to enable a new language by doing:

> 1. register a template
> 2. activate template using CREATE LANGUAGE (which would copy it to 
> pg_language)

That's the long-term idea, yes.

> How is this different from

> 1. register language in pg_language without privileges
> 2. activate language by granting privileges

Because you can't create a language without first creating the support
procedures, which ordinarily requires having the shared library present.
(This is why I proposed text names for the support procedures in
pltemplate, rather than OID references.)  This is perhaps not an issue
for entries wired in by initdb, but it's definitely an issue for manual
addition of template entries.

Also, ISTM your proposal is to cause "CREATE LANGUAGE foo" on an
already-existing language to execute "GRANT USAGE ON LANGUAGE foo TO PUBLIC"
instead, rather than erroring out.  That doesn't seem to pass the
least-surprise test at all.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Mysteriously lost values in nodes
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Mysteriously lost values in nodes