Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRkEw-0001wo-Gp for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 18:36:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cRkEw-0007uA-3S for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jan 2017 18:36:46 +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 1cRkEG-0006Ph-HE for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 18:36:04 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRkEB-0000hI-GJ for pgsql-bugs@postgresql.org; Thu, 12 Jan 2017 18:36:03 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AF29B5F79F; Thu, 12 Jan 2017 13:34:57 -0500 (EST) Date: Thu, 12 Jan 2017 13:34:57 -0500 From: Stephen Frost To: Moshe Jacobson Cc: 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: <20170112183457.GJ18360@tamriel.snowman.net> References: <20161208191642.1407.30751@wrigleys.postgresql.org> <20161208192933.GG23417@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="P33LUqzLXAslwFyJ" Content-Disposition: inline In-Reply-To: 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: 13:30:07 up 187 days, 19:54, 39 users, load average: 0.17, 0.11, 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 --P33LUqzLXAslwFyJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Moshe Jacobson (moshe@neadwerx.com) wrote: > My extension dynamically creates extension-owned tables and puts ACLs on > them. Ok, in 9.6, we should realize that your extension changed the ACLs for those tables. > When the database is dumped, it includes grants/revokes for those tables, > which will not exist when the extension is re-installed. When the database is dumped, it should include a CREATE EXTENSION command. It also shouldn't include GRANTs/REVOKEs unless the user changed the permissions on the extension's tables from what they were set to when the extension was installed. > As a result, when the database is restored, I keep getting warnings becau= se > it's trying to apply ACLs to tables that don't exist. >=20 > Is there a way around this issue? A self-contained test case against 9.6 which shows the issue you're having would really be the best way to help us. If the issue is that you're working on a pre-9.6 version of PG, then I'm afraid you'll need to upgrade or live with the warnings. Thanks! Stephen --P33LUqzLXAslwFyJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYd8xRAAoJEO1sijiDR2RVGO8QAMIEThYMOpiI6BTBPu7ILzrM ODdGnK0n5N+8z9EwtkVOPOZSzaaqk9Ty9Q5RSeRtPtSbzAhp+MlJBs6lI0bKQFh8 oW4HcBh+uCpkc9f2nf0yggh/9QcQ9kXvB8mJUn4vBE0WawCJdDiZhwqbwDHJT1r9 yP6MgY2Vmu4qd6ubgnsViNgVp1XfmYWkvFwXuhn2NxSsTOiL+US5bRv/nw94iq9k q5qFfjmM4t3/NTraTHMGne8uCQaD93dTFjycrTUHpfg7+z0j6x0HOKegjxwE2/Lg IFKwHI4gbDTk9RsnslSLnqqQ2+c+uMb5R/Ve7obZe1ZMLY2TqF1mOrsgxk5Zs+i9 FRqVlvd8Q1h+wjSwsivILNESYBneZp+ABgl290ppWIPb5tV20o95+nd29xIRkuDr YiTu/AlGdqKiGFDOkBxBov1EzMOTtcyyupY8pSDFCuuXOAAIMfrZpHeokVimPsrq 2Ef3cJ3Omvz1SsE3xc9H4ZJrQhWy8khs17RgQq0UZvheFJJWhOshH7jtYXqT72h0 QEi5apGeA69VHwAypcE0l0yn26wJFougYLsthWSynKxfKtCxebOnhl2is8BVn3dm dB8FkuCsscKuSCnN9KFLc/6YDIpss8/gIyXZrh1V24KuCle/GiIrhlNiMNGYMWkp dhn5cp0DeifobKtoBOND =Ockz -----END PGP SIGNATURE----- --P33LUqzLXAslwFyJ--