Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9Ie-00082A-Qc for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:21:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ar9Ie-0001L1-DG for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:21:04 +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 1ar9Id-0001Kv-Rc for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:21:03 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9Ia-0007Cw-SA for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:21:03 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id DFD155F79E; Fri, 15 Apr 2016 15:20:57 -0400 (EDT) Date: Fri, 15 Apr 2016 15:20:57 -0400 From: Stephen Frost To: Alvaro Herrera Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add new catalog called pg_init_privs Message-ID: <20160415192057.GE10850@tamriel.snowman.net> References: <20160415191836.GA432999@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rQfmhCPYrIx9zeBl" Content-Disposition: inline In-Reply-To: <20160415191836.GA432999@alvherre.pgsql> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 15:19:42 up 52 days, 16:12, 18 users, load average: 0.15, 0.14, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --rQfmhCPYrIx9zeBl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Alvaro, * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > Stephen Frost wrote: > > Add new catalog called pg_init_privs > >=20 > > This new catalog holds the privileges which the system was > > initialized with at initdb time, along with any permissions set > > by extensions at CREATE EXTENSION time. This allows pg_dump > > (and any other similar use-cases) to detect when the privileges > > set on initdb-created or extension-created objects have been > > changed from what they were set to at initdb/extension-creation > > time and handle those changes appropriately. >=20 > If you have an extension that's marked not relocatable and drop it, its > schema is left behind; trying to create the extension again, *crash*. Will take a look at this, though I'm just about to commit a fix that's probably related (and addresses Pavel's issue). Basically, for reasons unknown, I was calling systable_endscan() immediately after systable_getnext(), which doesn't work when you want to use the tuple you got back. Thanks! Stephen --rQfmhCPYrIx9zeBl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXET8ZAAoJEO1sijiDR2RVDEkP/A72Lp2KPX/vqlKtJl3kGu4T 3fMO6jas9wT/Mc93YuO/i2Tdk4DmgZ76OSMnrpmLm3zR21Kf9WJZLZnigqGtmrL+ sJb8vTsbOHAArZ4QqoKHx5S9U/hIF5TgWqmNZTSo9MC0lYjAazpb73B2ePZICKFa HBcuBmDr2gzZ9GUdeD6bM1PoW+w8ppcPu/vgjmtRtP/A2OLaV9G1k0tIvzY7t3PR OkyeznuH3wpB+xaCqLAV2bsV1owR3d/o7+RBVmjuZR/RC8xiV5W1ZINCrn0Dfykg Mo9hZT/VL7NzoMXQas6wlhMM6Bl9vtdZ8YcW4JRlo0hAnUcotsbX1YMw7q5r1KJM AJpN+NLnpZO6G/YQy/W7f3cups3aphSKevVRoJrEEfnSz+NgksM9B4pLWugZ8l+p rFoh3d92nSug+iQmktVxYqKg77AdxUp0LdZPUnw24XA9d8WAyLcx3kOnHkgrR+0g C/1e20pERKFQcKlV2wDB/4vtReDlDV+tYnU1YxniInjiX8jakMAzrYJLJTeaqd0e OL1cf9Osh/m9cH+NdsoD1WRpQEo7IsPTx1QWCt4jnxW/m3sUbmzr/lqaOrn8lRDE PAbEZvhrDsZFf7pbvsJlr5V+u2HCYiiICEYhRrE5mDaj8wlsgM+dDqUHa4FuU/GS nEqF5Ud67SwlOKIsb3aY =pDl+ -----END PGP SIGNATURE----- --rQfmhCPYrIx9zeBl--