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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Doc: fix old oversights in GRANT/REVOKE documentation.
Date: 2020-02-12 19:13:55
Message-ID: E1j1xSN-0001rF-Ni@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/804a650e4b0cddca546ddb37c7785c93b0752d07

Modified Files
--------------
doc/src/sgml/ref/grant.sgml | 24 +++++++++++++++++++----
doc/src/sgml/ref/revoke.sgml | 46 ++++++++++++++++++++++++++++----------------
2 files changed, 49 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-02-12 19:34:08 pgsql: Remove long-dead comments.
Previous Message Fujii Masao 2020-02-12 09:11:06 Re: pgsql: walreceiver uses a temporary replication slot by default