user space function "is_power_user"
user space function "is_power_user"
От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
Hi
I often need a function for identification if current user is database owner or is superuser. Re: user space function "is_power_user"
От:
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');
- Heikki
Re: user space function "is_power_user"
От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
2015-06-22 11:20 GMT+02:00 Heikki Linnakangas <hlinnaka@iki.fi>:
current_setting('is_superuser');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?
there is second constraint
OR "is database owner"
Pavel
- Heikki