Re: How to restore roles without changing postgres password
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Andrus <kobruleht2@hot.ee>, Justin <zzzzz.graf@gmail.com>,
pgsql-general@postgresql.org, pgsql-docs@lists.postgresql.org
Date: 2020-02-12T16:59:46Z
Lists: pgsql-general, pgsql-docs
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 2/11/20 11:31 PM, Andrus wrote:
>> Also I dont understand why GRANTED BY clauses appear in file. This looks
>> like noice.
>> GRANT documentation
>> https://www.postgresql.org/docs/current/sql-grant.html
>> does not contain GRANTED BY clause. It looks like pg_dumpall generates
>> undocumented clause.
> It is not noise, see:
Indeed, but it's a fair question why it's not documented.
The clause does appear in the SQL standard:
<grant privilege statement> ::=
GRANT <privileges> TO <grantee> [ { <comma> <grantee> }... ]
[ WITH HIERARCHY OPTION ]
[ WITH GRANT OPTION ]
[ GRANTED BY <grantor> ]
so I suppose whoever added the implementation just forgot about
fixing the docs.
regards, tom lane
Commits
-
Doc: fix old oversights in GRANT/REVOKE documentation.
- dce988145f7e 13.0 landed
- a56c495873c8 10.13 landed
- 804a650e4b0c 9.6.18 landed
- 736ba917f484 11.8 landed
- 2efefd28add2 12.3 landed
- 2b9d4ec1d3c0 9.5.22 landed