Re: Should creating a new base type require superuser status?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Should creating a new base type require superuser status?
Дата
Msg-id Pine.BSO.4.64.0807311543170.14232@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Should creating a new base type require superuser status?  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Should creating a new base type require superuser status?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On Wed, 30 Jul 2008, Alvaro Herrera wrote:

> I think being able to return cstring from a user defined function is
> quite dangerous already.  I doubt we would ever give that capability to
> non-superusers.
>
> I do agree that creating base types should require a superuser though.
> It too seems dangerous just on principle, even if today there's no
> actual hole (that we already know of).

pl/java already allows non-superusers to create functions returning 
cstring and base types built off of these functions.  It seems safe to me 
if pl/java is doing the construction of cstring from a user provided 
java.lang.String.

http://wiki.tada.se/display/pljava/Creating+a+Scalar+UDT+in+Java

Kris Jurka


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fixing DISTINCT ON for duplicate keys
Следующее
От: David Fetter
Дата:
Сообщение: Re: Fixing DISTINCT ON for duplicate keys