Re: is_superuser is not documented

Поиск
Список
Период
Сортировка
От Euler Taveira
Тема Re: is_superuser is not documented
Дата
Msg-id 190e2a49-5736-4f68-a3ed-e592e263ace6@www.fastmail.com
обсуждение исходный текст
Ответ на is_superuser is not documented  (bt22kawamotok <bt22kawamotok@oss.nttdata.com>)
Ответы Re: is_superuser is not documented  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Remove redundant code in pl_exec.c
Следующее
От: Japin Li
Дата:
Сообщение: Re: Remove redundant code in pl_exec.c