Re: user space function "is_power_user"

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: user space function "is_power_user"
Дата
Msg-id 5587D369.2030402@iki.fi
обсуждение исходный текст
Ответ на user space function "is_power_user"  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: user space function "is_power_user"
Список pgsql-hackers
On 06/22/2015 09:51 AM, Pavel Stehule wrote:
> Hi
>
> I often need a function for identification if current user is database
> owner or is superuser.
>
> It can be pretty simply implemented in C level.
>
> Do you think it should be available in core?

current_setting('is_superuser');

- Heikki




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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: checkpointer continuous flushing
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: user space function "is_power_user"