Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iexC1-0000Ig-RO for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 08:17:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iexC0-0005OU-Ms for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 08:17:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iexBe-0002aX-Ib for pgsql-hackers@lists.postgresql.org; Wed, 11 Dec 2019 08:17:34 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iexBb-00014b-Mu for pgsql-hackers@postgresql.org; Wed, 11 Dec 2019 08:17:33 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 65D95AF8; Wed, 11 Dec 2019 03:17:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 11 Dec 2019 03:17:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; 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-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=eJJsdGvelVKM8T13YQiy5XSKe+50TwyXiJh7ST2OS WI=; b=mwuQZ/hHa6hjDwlegihrYFx+/dd9nA2m8L/nIJ6IRzkdn+dU+YGtPH1Nu 7K2NSpZ4ZpLQWzvUkLLffDus3rww1rfJVz8Bo40VI+JAr3PsZlsiDWZFUqqUS57M 8jFirlh7tC37gyTPjJaCW206J3RWm98Tjx6b2WNihxSmSVtV/JIFp0yBDYQvnuNM Q2w5zx+WNp6tuz/nxhnPkvnEkxU0Lb/q3V+etoEKpq570YNdQ4GvVdNi33kP2tUi q3MWJd3GWrD5eIRYOiC7zYVYig5XRv1jU3vGsy92uH1OVoMhCQ2nHX2QRKC8Zx31 1g6h7iwSfAVmojSvFt1JMOOqpko9w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelgedguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgfgse htjeertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvght vghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuffhomh grihhnpedvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrfeegrdel leenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtse dvnhguqhhurggurhgrnhhtrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from april.pezone.net (p5df32263.dip0.t-ipconnect.de [93.243.34.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 3A6E380061; Wed, 11 Dec 2019 03:17:29 -0500 (EST) Subject: Re: about allow_system_table_mods and SET STATISTICS To: Tom Lane References: <6375.1575501374@sss.pgh.pa.us> <8540.1575995032@sss.pgh.pa.us> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com> Date: Wed, 11 Dec 2019 09:17:27 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <8540.1575995032@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-12-10 17:23, Tom Lane wrote: > Peter Eisentraut writes: >> Good point. Done in the attached patch. >> (If someone wanted to revive the original functionality, it would >> nowadays probably be easier to add a flag ATT_SYSTEM_TABLE to >> ATSimplePermissions(), so there is really no reason to keep the old >> function separate.) > > Yeah --- that way, the behavior would also be conveniently available > to other ALTER TABLE subcommands. > > This patch looks good, with one trivial nitpick: it looks a bit odd > to insert the relkind check into ATExecSetStatistics between the > assignment of "newtarget" and the validity check for same. I'd > put it either before or after that whole stanza. Just a cosmetic > thing though. Committed that way. Thanks. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services