Re: Pl/Java broken since Postgresql 8.3-rc1

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Pl/Java broken since Postgresql 8.3-rc1
Дата
Msg-id Pine.BSO.4.64.0801102354050.23548@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Pl/Java broken since Postgresql 8.3-rc1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On Thu, 10 Jan 2008, Tom Lane wrote:

> Just out of curiosity, what was pljava doing calling SetUserId?
> If I'd known about that I'd have thought harder about removing the
> function; but it's not clear to me why a PL should be doing that.
>

pljava wants to run code as the session user when inside a security 
definer function.  The sqlj spec has an install_jar function which 
installs a library of java code and has an optional deployment descriptor 
which can create functions against the library and tables for it to use. 
The install_jar function is security definer to be able to register the 
jar file in various sqlj tables that the calling user may not be able to 
write to, but it wants to create the tables and function specified in the 
deployement descriptor with the ownership of the user calling install_jar, 
not the person who initially installed pljava.

Kris Jurka



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Pl/Java broken since Postgresql 8.3-rc1
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Dynamic Partitioning using Segment Visibility Maps