Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cY3dp-0005gX-SI for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Jan 2017 04:32:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cY3do-0004a3-Nz for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Jan 2017 04:32:32 +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 1cY3dA-0003r3-FX for pgsql-bugs@postgresql.org; Mon, 30 Jan 2017 04:31:52 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cY3d7-0000Xn-JN for pgsql-bugs@postgresql.org; Mon, 30 Jan 2017 04:31:51 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 997215F794; Sun, 29 Jan 2017 23:30:48 -0500 (EST) Date: Sun, 29 Jan 2017 23:30:48 -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: <20170130043048.GU9812@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="s58dH9ID44isBfhf" 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: 23:30:21 up 205 days, 5:54, 2 users, load average: 0.05, 0.05, 0.08 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 --s58dH9ID44isBfhf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable All, * 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've pushed a fix for this and back-patched it to 9.6. Thanks! Stephen --s58dH9ID44isBfhf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYjsF4AAoJEO1sijiDR2RVVzQP/1yQ8csisdhvDM2a31MECRGU a3ZW+jUers98zGr+JKWHX24Ff2vNzhVObKu99X17VxJdjEE8HRe4wXReundY9+1l AZl4o38dEzOSoL/d+2Y8q8dKnRgFWhP4/FSy6/7i4HoP6PWxCklLi1ikxZwsApQR EZ86ldtoPZvhN/CgNeEUbcaqdDZnUf7rLCpcFT6tmKKbLevsAsg7l1zuoiR/l9h3 Cgdxl1zm9DTACsbElJFyS4/ilw5VYE0dTWf5fapTjewn+sRyfUdr/sK7U7J+6dKi kZAzb2beutq+rGru8H28JaE00O+NRdFDOcIHtxyFh9b26Fg0o3LoQ1XDS09lpSpD p/eWTY6sq5yC0V096IrnczkoaleCJCclZQeHPHSLMlAiHpGtqvHTMZ051Nnqwhzz J8TbnTKWSEjOZoQJpENoGOi2n90XpEnAILegyDjE2S4KpRqfRFfi8uJsBXN5hPfz fVdoJYFnaVsUbyRrvezcKCeEGAWsw7HJDB3TduBnDqlUwO0exjqK7eCwtbHEXduA aOdwD3bdv+RXo0vygiBvzInA4VZbpLqiaRqMcEMnbswfjLUFWG5ca8zgXjjH8B+p DixT2mqHihdB6gDcBaX8HnN46K17GMmkH38Jgfd75vLmBWg6le2Cqll6zcMglWHK NEqa46e3KSpjHQGkVf+d =i0tR -----END PGP SIGNATURE----- --s58dH9ID44isBfhf--