Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1vMp-0000qH-R0 for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2020 17:00:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1vMo-0005Me-Iq for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2020 17:00:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1vMo-0005MT-9W; Wed, 12 Feb 2020 17:00:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1vMl-0003Fo-BW; Wed, 12 Feb 2020 17:00:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01CGxkhh003071; Wed, 12 Feb 2020 11:59:46 -0500 From: Tom Lane To: Adrian Klaver cc: Andrus , Justin , pgsql-general@postgresql.org, pgsql-docs@lists.postgresql.org Subject: Re: How to restore roles without changing postgres password In-reply-to: <91c20b33-cbea-457f-4f43-00a7b8288d7f@aklaver.com> References: <38D406CB287140A49F635258B634E072@dell2> <4D6B3F5D59EA48A0BF711C8E461D6388@dell2> <91c20b33-cbea-457f-4f43-00a7b8288d7f@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Wed, 12 Feb 2020 08:39:27 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3069.1581526786.1@sss.pgh.pa.us> Date: Wed, 12 Feb 2020 11:59:46 -0500 Message-ID: <3070.1581526786@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver 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 TO [ { }... ] [ WITH HIERARCHY OPTION ] [ WITH GRANT OPTION ] [ GRANTED BY ] so I suppose whoever added the implementation just forgot about fixing the docs. regards, tom lane