Re: is_superuser is not documented - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: is_superuser is not documented
Date
Msg-id 190e2a49-5736-4f68-a3ed-e592e263ace6@www.fastmail.com
Whole thread Raw
In response to is_superuser is not documented  (bt22kawamotok <bt22kawamotok@oss.nttdata.com>)
Responses Re: is_superuser is not documented
List pgsql-hackers
On Fri, Sep 9, 2022, at 2:28 AM, bt22kawamotok wrote:
is_superuser function checks whether a user is a superuser or not, and 
is commonly used. However, is_superuser is not documented and is set to 
UNGROUPED in guc.c. I think is_superuser should be added to the 
documentation and set to PRESET OPTIONS.What are you thought on this?
There is no such function. Are you referring to the GUC? I agree that it should
be added to the documentation. The main reason is that it is reported by
ParameterStatus along with some other GUCs described in the Preset Options
section.

postgres=# \dfS is_superuser
                       List of functions
Schema | Name | Result data type | Argument data types | Type 
--------+------+------------------+---------------------+------
(0 rows)

postgres=# SHOW is_superuser;
is_superuser 
--------------
on
(1 row)

Do you mind writing a patch?


--
Euler Taveira

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Remove redundant code in pl_exec.c
Next
From: Japin Li
Date:
Subject: Re: Remove redundant code in pl_exec.c