Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bggyk-00089K-Dg for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Sep 2016 23:37:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bggyj-0002Sr-RX for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Sep 2016 23:37:33 +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 1bggxK-0000sw-RF for pgsql-hackers@postgresql.org; Sun, 04 Sep 2016 23:36:06 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bggxH-0004ZM-7d for pgsql-hackers@postgresql.org; Sun, 04 Sep 2016 23:36:05 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2D63C5F794; Sun, 4 Sep 2016 19:36:00 -0400 (EDT) Date: Sun, 4 Sep 2016 19:36:00 -0400 From: Stephen Frost To: Tom Lane Cc: Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: Remove superuser() checks from pgstattuple Message-ID: <20160904233559.GP4028@tamriel.snowman.net> References: <20160823212243.GJ4028@tamriel.snowman.net> <6e01d90c-337f-fc02-2021-6520b4a099b9@2ndquadrant.com> <20160904154158.GN4028@tamriel.snowman.net> <6659.1473004506@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wrBZgLp+s4aGLL87" Content-Disposition: inline In-Reply-To: <6659.1473004506@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: 19:00:57 up 58 days, 25 min, 10 users, load average: 0.23, 0.09, 0.06 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -3.6 (---) 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 --wrBZgLp+s4aGLL87 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tom, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > [ warning, thread hijack ahead ] quite. > Stephen Frost writes: > > * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: > >> I think this is a good change to pursue, and we'll likely want to do > >> more similar changes in contrib. But I'm worried that what is logical= ly > >> a 10-line change will end up a 20 KiB patch every time. >=20 > > We also created a new version to add the PARALLEL SAFE markings to the > > functions. In general, I believe it's better to use a new version when > > we're making these kinds of changes. >=20 > It is becoming clear that the current extension update mechanism is kind > of brute-force for this sort of change. I have no ideas offhand about a > better way to do it, but like Peter, I was dismayed by the amount of pure > overhead involved in the PARALLEL SAFE updates. To make the patches smaller, it seems that we'd need a way to avoid the removal and re-addition of the entire install script and a way to avoid having to add a new upgrade script. Perhaps if the versioned install script was actually a non-versioned install script in the source tree, and the Makefile simply installed it into the correct place, then we could eliminate that part. (All very hand-wavy, I've not looked at what it'd take to do.) I don't have any great answers for the upgrade script off-hand. We could come up with a way for one file to handle multiple upgrade options, but that doesn't really make the patch any smaller. > It's not only development overhead, either: users have to remember to > run around and issue ALTER EXTENSION UPDATE for every extension they > have, in every database they have it installed in. Anyone want to > lay a side bet on how many users will actually do that? Given that > the release notes don't currently suggest doing so, I'd be willing > to put money on "none at all" :-( I agree, that's also an issue. > I wonder whether pg_upgrade ought to be changed to attempt upgrading > every extension after it's completed the basic migration. Or at > least offer a script containing all the needed commands. I like the idea of having an option and documentation to go along with it. Hopefully that will help administrators at least realize that it's something they'll want to look at doing. > Anyway, it's not this particular patch's job to do better, but we > oughta think about better ways to do it. Agreed. Thanks! Stephen --wrBZgLp+s4aGLL87 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXzK/fAAoJEO1sijiDR2RVXmQQAIEun5golMBBGlbUBJ1fw1w7 9ZPZTTWmEQRXx8Q4CNSqcw7uqNt9fdh8olWmuCsaQ0ph8mvrt31UmepazgMBuINz sHr+NFp/dYIgIqrVvQ9CpKfS1WpYr/4/F4TjfgiYLmkI0IXn5srFs0zDCUr5HBGW h04zuPLZMwh8yoQHb8dpDVZboHByx0suWxd96ACmjfgYUTUnhgIb0xU5zo6G36w8 CF//NwwlzmWd4kgwge+KnwhSxAEW2IrX86sc4sXGQm4bVJ61xvGOnV/78Bfd/ujK MVamgJKsJOtdiH7UGzaXaYfSS7kFmw496UgIfydftSL56Q428s2pDjHTOhJcigbO okkx2kKSbL/djaHc0GSNKrbN51/6GZXV8XYZY3U584HzzSPb5ogPjzfp+IiknTrU gu3rllYpuog56gs92LcTyypbPD0PfuWKe0O+a/4LcETa3jJToRm7vdd5/pN2VswL BVRpWcs4YjvXP5vBxV1XPDCCaVobW0vfS/5HLJpbcuICH+g2ZZutAFWxwll75+hJ Dulxbb9D1B3YVXW+J/IHDOxCM4yqGlCs56WUMLbzYaA+lGbAc03bQluo+p83a7GM wan/JEhEhf5RdLO6boVDGICcs/WB1jIemchv3FZsujJIWEO1whaMUCQpjaZEU97F FyeZnWjcdupelipXAY7r =RtcV -----END PGP SIGNATURE----- --wrBZgLp+s4aGLL87--