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?