Re: How to restore roles without changing postgres password

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Andrus <kobruleht2(at)hot(dot)ee>, Justin <zzzzz(dot)graf(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: How to restore roles without changing postgres password
Date: 2020-02-12 16:59:46
Message-ID: 3070.1581526786@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2020-02-12 20:58:12 Re: Getting our tables to render better in PDF output
Previous Message Adrian Klaver 2020-02-12 16:39:27 Re: How to restore roles without changing postgres password

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Igrishin 2020-02-12 17:14:36 Re: Natural sort order extension.
Previous Message Laurenz Albe 2020-02-12 16:55:17 Re: Natural sort order extension.