information_schema.applicable_roles behavior does not matchdocumentation

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема information_schema.applicable_roles behavior does not matchdocumentation
Дата
Msg-id 151747128215.1240.1598372623554241748@wrigleys.postgresql.org
обсуждение исходный текст
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/static/infoschema-applicable-roles.html
Description:

The documentation for applicable_roles says: "The current user itself is
also an applicable role." (see
https://www.postgresql.org/docs/current/static/infoschema-applicable-roles.html)

My understanding is that the current user should be listed in
information_schema.applicable_roles, but a quick check shows that it is
not.

marc=> select * from information_schema.applicable_roles;
 grantee | role_name | is_grantable 
---------+-----------+--------------
 marc    | foo       | YES
(1 row)

It properly shows the role I am a member of, but not myself.

By contrast, the docs for enabled_roles also say that it includes the
current user, and it actually does:

marc=> select * from information_schema.enabled_roles;
 role_name 
-----------
 foo
 marc
(2 rows)

This also isn't a user vs role issue. If I "set role foo", it is no longer
visible in applicable_roles.


В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade docs are confusing if PostgreSQL's versioningsystem/language isn't known to reader
Следующее
От: PG Doc comments form
Дата:
Сообщение: A simple question