Re: user space function "is_power_user"

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: user space function "is_power_user"
Дата
Msg-id CAFj8pRADUygh9z9Lef7y_t1qinCFYhoDDTiO03rnCkG_-NFSug@mail.gmail.com
обсуждение исходный текст
Ответ на Re: user space function "is_power_user"  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers


2015-06-22 11:20 GMT+02:00 Heikki Linnakangas <hlinnaka@iki.fi>:
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');

there is second constraint

OR "is database owner"

Pavel
 

- Heikki


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: user space function "is_power_user"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Extension support for postgres_fdw