Re: [HACKERS] user space function "is_power_user"

2015-06-22 Thread Pavel Stehule
2015-06-22 11:20 GMT+02:00 Heikki Linnakangas : > 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 availa

Re: [HACKERS] user space function "is_power_user"

2015-06-22 Thread Heikki Linnakangas
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 -- Sent via

[HACKERS] user space function "is_power_user"

2015-06-21 Thread Pavel Stehule
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? Regards Pavel