Re: Authorized privileges when calling a procedure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Authorized privileges when calling a procedure
Дата
Msg-id 837.1114182213@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Authorized privileges when calling a procedure  ("Walker, Jed S" <Jed_Walker@cable.comcast.com>)
Список pgsql-novice
"Walker, Jed S" <Jed_Walker@cable.comcast.com> writes:
> I have another question. It appears that when you create a procedure and
> grant access on it to another user, the user must have privileges to all
> objects that the procedure references. Can someone confirm this, and is
> there a way to change the privilege authorization to the user that defined
> the procedure?

Mark the function as SECURITY DEFINER --- this is like setuid programs
in Unix.

(No, it's not a very intuitive label for the behavior, but it's what
the SQL spec says to use.)

            regards, tom lane

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

Предыдущее
От: tövis
Дата:
Сообщение: Re: Granting permission on a sequence to a group
Следующее
От: "Van Ingen, Lane"
Дата:
Сообщение: CHECK Constraints