PLPGSQL 'SET SESSION ROLE' problems ..

Поиск
Список
Период
Сортировка
От Greg Wickham
Тема PLPGSQL 'SET SESSION ROLE' problems ..
Дата
Msg-id 964C943783CDCE4BBA0CE327AA8E7BA5C2802D@vm-a-ex1.ms.aarnet.edu.au
обсуждение исходный текст
Список pgsql-general
Hi,

Is it possible to change the current role to another arbitrary role
using a PLPGSQL function?

In essence I've a function "authorise" created by the db superuser with
'SECURITY DEFINER' specificied.

However from within plpgsql the 'superuser' attribute isn't honored when
trying to change roles (ie: the non 'superuser' rules for role change
must be honoured).

Is this a bug?

tnx,

   -greg

--

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

Предыдущее
От: pgsql.gen@tuxbeagle.com
Дата:
Сообщение: Using C API
Следующее
От: vladimir konrad
Дата:
Сообщение: Re: corrupt database?