Re: user space function "is_power_user" - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: user space function "is_power_user"
Date
Msg-id 5587D369.2030402@iki.fi
Whole thread Raw
In response to user space function "is_power_user"  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: user space function "is_power_user"  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: checkpointer continuous flushing
Next
From: Pavel Stehule
Date:
Subject: Re: user space function "is_power_user"