Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgiRL-0006FW-Uy for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Sep 2016 01:11:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bgiRL-00016m-HL for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Sep 2016 01:11:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bgiPy-0007tn-Qf for pgsql-hackers@postgresql.org; Mon, 05 Sep 2016 01:09:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bgiPw-0007gq-88 for pgsql-hackers@postgresql.org; Mon, 05 Sep 2016 01:09:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8519fZb025377; Sun, 4 Sep 2016 21:09:41 -0400 From: Tom Lane To: Andres Freund cc: Stephen Frost , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: Remove superuser() checks from pgstattuple In-reply-to: <20160905005919.jz2m2yh3und2dsuy@alap3.anarazel.de> References: <20160823212243.GJ4028@tamriel.snowman.net> <6e01d90c-337f-fc02-2021-6520b4a099b9@2ndquadrant.com> <20160904154158.GN4028@tamriel.snowman.net> <6659.1473004506@sss.pgh.pa.us> <20160905005919.jz2m2yh3und2dsuy@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 04 Sep 2016 17:59:19 -0700" Date: Sun, 04 Sep 2016 21:09:41 -0400 Message-ID: <25376.1473037781@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) 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 Andres Freund writes: > On 2016-09-04 11:55:06 -0400, Tom Lane wrote: >> 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. > Agreed. I think one way, which a few extensions are taking, is to have a > base version and then incremental version upgrades. Currently CREATE > EXTENSION doesn't natively support that, so you have to concatenate the > upgrade scripts. I think it'd be great if we could add a 'baseversion' > property to the extension control file. When you create a new extension, > it'll start with the base version and then use the existing code to find > a path to upgrade to the target version. That also makes it a lot > easier to actually properly test extension upgrade paths, something > we've not really been good at. Hm, couldn't we do that automatically? At least in the case where only one base-version script is available? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers