Re: user space function "is_power_user"

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: user space function "is_power_user"
Date: 2015-06-22 09:20:41
Message-ID: 5587D369.2030402@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2015-06-22 09:22:33 Re: user space function "is_power_user"
Previous Message Fabien COELHO 2015-06-22 08:11:09 Re: checkpointer continuous flushing