Re: PLPGSQL 'SET SESSION ROLE' problems ..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PLPGSQL 'SET SESSION ROLE' problems ..
Дата
Msg-id 3344.1192077454@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PLPGSQL 'SET SESSION ROLE' problems ..  ("Greg Wickham" <Greg.Wickham@aarnet.edu.au>)
Список pgsql-general
"Greg Wickham" <Greg.Wickham@aarnet.edu.au> writes:
> Is it possible to change the current role to another arbitrary role
> using a PLPGSQL function?

Yes.

> However from within plpgsql the 'superuser' attribute isn't honored when
> trying to change roles

IIRC we deliberately restrict inheritance of superuser status.  If you
want to argue there's a bug here you need to provide specific details of
what you did, as well as an argument why superuser status should be more
laxly controlled.

            regards, tom lane

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

Предыдущее
От: "Greg Wickham"
Дата:
Сообщение: PLPGSQL 'SET SESSION ROLE' problems ..
Следующее
От: "Manish Jain"
Дата:
Сообщение: Not able to insert binary Data having NULL