pgsql: Doc: fix old oversights in GRANT/REVOKE documentation.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Doc: fix old oversights in GRANT/REVOKE documentation.
Дата
Msg-id E1j1xSN-0001r5-M1@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Doc: fix old oversights in GRANT/REVOKE documentation.

The GRANTED BY clause in GRANT/REVOKE ROLE has been there since 2005
but was never documented.  I'm not sure now whether that was just an
oversight or was intentional (given the limited capability of the
option).  But seeing that pg_dumpall does emit code that uses this
option, it seems like not documenting it at all is a bad idea.

Also, when we upgraded the syntax to allow CURRENT_USER/SESSION_USER
as the privilege recipient, the role form of GRANT was incorrectly
not modified to show that, and REVOKE's docs weren't touched at all.

Although I'm not that excited about GRANTED BY, the other oversight
seems serious enough to justify a back-patch.

Discussion: https://postgr.es/m/3070.1581526786@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dce988145f7e455f224310afec6b06bcf3eed24e

Modified Files
--------------
doc/src/sgml/ref/grant.sgml  | 24 ++++++++++++++++++++----
doc/src/sgml/ref/revoke.sgml | 42 +++++++++++++++++++++++++++---------------
2 files changed, 47 insertions(+), 19 deletions(-)


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: pgsql: walreceiver uses a temporary replication slot by default
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove long-dead comments.