Re: Execute permissions for stored functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Execute permissions for stored functions
Дата
Msg-id 20956.1074490833@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Execute permissions for stored functions  (Paul Hart <paulhart@redchocolate.ca>)
Список pgsql-sql
Paul Hart <paulhart@redchocolate.ca> writes:
> In RDBMSs such as Oracle, stored PL/SQL functions run with the 
> permissions of the user that creates the function. Users who are given 
> EXECUTE privileges then call the function with the permissions of the 
> creator of the function.

Use "SECURITY DEFINER" to get this behavior in Postgres.

The SQL99 spec punts as to whether SECURITY DEFINER should be the
default or not, so unfortunately neither we nor Oracle can be said
to be wrong on this point...
        regards, tom lane


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

Предыдущее
От: "Denis"
Дата:
Сообщение: Re: Left joins with multiple tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How can I get the last element out of GROUP BY sets?