From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Andrus <kobruleht2@hot.ee>
Cc: Justin <zzzzz.graf@gmail.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: How to restore roles without changing postgres password
Date: Wed, 12 Feb 2020 11:59:46 -0500
Message-ID: <3070.1581526786@sss.pgh.pa.us> (raw)
In-Reply-To: <91c20b33-cbea-457f-4f43-00a7b8288d7f@aklaver.com>
References: <38D406CB287140A49F635258B634E072@dell2>
<CALL-XeNbJ8w_edXjqTuPL0DJv1OdS7WU4z9hMzo71DfAnwMVWg@mail.gmail.com>
<4D6B3F5D59EA48A0BF711C8E461D6388@dell2>
<91c20b33-cbea-457f-4f43-00a7b8288d7f@aklaver.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, kobruleht2@hot.ee, zzzzz.graf@gmail.com, pgsql-general@postgresql.org, pgsql-docs@lists.postgresql.org
Subject: Re: How to restore roles without changing postgres password
In-Reply-To: <3070.1581526786@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox