Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi2Bd-00067b-8J for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Sep 2016 16:28:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bi2Bc-0005fX-Mz for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Sep 2016 16:28:24 +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 1bi2Bc-0005fR-8y for pgsql-hackers@postgresql.org; Thu, 08 Sep 2016 16:28:24 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bi2BZ-0005uk-6r for pgsql-hackers@postgresql.org; Thu, 08 Sep 2016 16:28:23 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id BFCDB20370; Thu, 8 Sep 2016 12:28:19 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 08 Sep 2016 12:28:19 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=mTmocgV6Cpv+tdr bkvTRJMNZsbI=; b=b+H11X648RYHssrxVP7iiLP2mM8XAVzCs/NJKBb5wUWj4c9 W9zQkgRegm+OOabrRGGKaj46xqcRuo/z3kDamG1A8NRYXFkxi6+N21W2NXXO1g5Q sOOGNoYnmV9443HEpUAzXufbtuBIEGMge7NSR5kb4OmRz69aeLNy1sxhAVxI= X-Sasl-enc: u7KGLWBIIxg8L1PV3zTr/qtxYvv5yQfwyT8PQ3vVkgaD 1473352099 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 85A10F29CC; Thu, 8 Sep 2016 12:28:19 -0400 (EDT) Subject: Re: Remove superuser() checks from pgstattuple To: Stephen Frost , Tom Lane References: <20160823212243.GJ4028@tamriel.snowman.net> <6e01d90c-337f-fc02-2021-6520b4a099b9@2ndquadrant.com> <20160904154158.GN4028@tamriel.snowman.net> <6659.1473004506@sss.pgh.pa.us> <20160904233559.GP4028@tamriel.snowman.net> Cc: "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <682a41e2-075a-86d7-769a-c046c2a34011@2ndquadrant.com> Date: Thu, 8 Sep 2016 12:28:14 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160904233559.GP4028@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 On 9/4/16 7:36 PM, Stephen Frost wrote: > 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.) A number of external extensions actually do it that way, but it also has its problems. For example, if you don't preserve the old base install scripts, you can't actually test whether your upgrade scripts work in the sense that they upgrade you to the same place. This is now being obsoleted by the later idea of allowing base installs from a chain of upgrade scripts. But if your upgrade scripts contain ALTER TABLE commands, you will probably still want to write base install scripts that do a fresh CREATE TABLE instead. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers