Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRl0w-0004Fq-Fi for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 19:26:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cRl0w-0003ue-2g for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 19:26:22 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cRl0H-0003B8-Me for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 19:25:41 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRl0E-0001d5-MF for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 19:25:41 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 201085F79F; Thu, 12 Jan 2017 14:24:38 -0500 (EST) Date: Thu, 12 Jan 2017 14:24:38 -0500 From: Stephen Frost To: Tom Lane Cc: Moshe Jacobson , daniele.varrazzo@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14456: pg_dump doesn't restore permissions on tables belonging to an extension Message-ID: <20170112192437.GR18360@tamriel.snowman.net> References: <20161208191642.1407.30751@wrigleys.postgresql.org> <20161208192933.GG23417@tamriel.snowman.net> <20170112183457.GJ18360@tamriel.snowman.net> <12559.1484247701@sss.pgh.pa.us> <20170112190830.GP18360@tamriel.snowman.net> <13549.1484248592@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gYXIgL6/MA84ylAn" Content-Disposition: inline In-Reply-To: <13549.1484248592@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 14:24:04 up 187 days, 20:48, 39 users, load average: 0.02, 0.09, 0.10 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --gYXIgL6/MA84ylAn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > >> Hmm. There's an argument to be made that ALTER EXTENSION ADD should > >> absorb whatever the object's current ACLs are into the pg_init_privs > >> entries for the extension. (I don't think it does that now, though > >> I might be wrong.) However ... >=20 > > I've not gone and looked yet, but I doubt that it does. I think I can > > agree with the argument that it really should add those ACLs to > > pg_init_privs. Of course, any furhter manipulation of the ACLs from > > that point will cause those ACLs to be included in the pg_dump. >=20 > > I'll take a look at ALTER EXTENSION ADD and pg_init_privs. >=20 > By the same token, does ALTER EXTENSION DROP remove those entries? I'll make sure it does. My guess at the moment is that it doesn't. Thanks! Stephen --gYXIgL6/MA84ylAn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYd9f1AAoJEO1sijiDR2RVgGAP/0s6GW4tLwH/9+BwNg6nk1LL O96gvz8qFie+YzGMgePRL16D03kSVbWH+HjrLqm+njyKTdahMyTOF+aNREpNAiUn oMyQ7tpWnAgBjt1W4uS12jnZI5d4bhagNL5v/0yjH8vYSd6DqqBtngw6vWWiL6Ej bZFW0YUvx1EwkeUaXjFAIRcWCHHAuQ8HE7uJAAKo2s8J2Sv46BklJtP7PPdzCeOO zf2DzLX6qODqt+oTVoxZV7j5DCdeh05/q2zptqrQfmQGsC9D9i/CxQViW9V496hZ PXuI+PmHx2cN+IFVujyGr/0rodYKXyb/EOLY+2uR/LNsHLlNoaoNMKwOG4QQYq3t HoDc8d6UnlQUCorNAvff6VGXbvV2/XQB2ZsSxaec93S2Vnmas77ofQESLs0GVioK 84ymEcEcFAVoxG6ojznk7rWw08ZFv0Zv/BKiynfF83yXfCHMmKm3a0svscqd+tL+ /Jq8poiyDCpNQAQi/zkqBi+eIv4nJHl31YTepXSbnJGHaKYaUk2rw2MHT20OFVY+ X3efBw6Ybn7kvvlwPsPYMt+zniq+URYLrQtvcw7lLR1+TwCG3vrxqj/q4Nc5nxku P6EVfqePgrA0zlFncfHiS2c9STx3Vc6ZWHQntgeoAfGCNG3Ptz4WoFQV5opDn+qs EboWnY5Vr2TlDqCNYs5g =VXDE -----END PGP SIGNATURE----- --gYXIgL6/MA84ylAn--