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 1icdZd-0002by-RQ for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2019 22:56:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icdZc-0005Bi-Jc for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2019 22:56:44 +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 1icdZb-0005Bb-6c for pgsql-hackers@lists.postgresql.org; Wed, 04 Dec 2019 22:56:44 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icdZX-0005C4-Tu for pgsql-hackers@postgresql.org; Wed, 04 Dec 2019 22:56:42 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A016F2279D for ; Wed, 4 Dec 2019 17:56:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 04 Dec 2019 17:56:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=MSgxigFZRPpx2RYylq54eCAkPgoGo QOa5ccz1yDL7d8=; b=rzwwUZlrtqv89dVLiBasQkqXmGTUSfbwyDkEJvw2BbXOZ QFSSEulcUK9S7EySN1oGWe3i3on71XfPUaaXDgPbQ563vNvbBCySr/h0aDtzvW4P M3JuBtxvV31eeF2Y9vmozVy+U6XA8k/adQvoo0eTdKTyFuw2VoOtJlJt9+oqCL+V CRiCxSP/xj2QebnRsuNOKoHvD2lKH3900l0GL72/W2hPHVCSDkzU/Kf7ZDPVk0QZ BPlIw2NTcfO0xXKXu0FbhSPF9QBLTlOqgSqGC2l6yLc7LZVe4pWVfiFlsZzo+934 RhQhq28MQ0rBYGzneYt06U5PdTnOzsU7boCA9FsVg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudektddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhuffvohfkffgfgggtsehmtderre dtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgv ihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpe dvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegvddrudegjedrjeelnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 8906D306010D for ; Wed, 4 Dec 2019 17:56:36 -0500 (EST) From: Peter Eisentraut Subject: about allow_system_table_mods and SET STATISTICS To: pgsql-hackers Organization: 2ndQuadrant Message-ID: Date: Wed, 4 Dec 2019 23:56:34 +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 Content-Type: multipart/mixed; boundary="------------6850D5C27976E9F5A1B011C6" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------6850D5C27976E9F5A1B011C6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Until PostgreSQL 9.1, it was possible to run ALTER TABLE ... SET STATISTICS without allow_system_table_mods. In PostgreSQL 9.2 and later, this no longer works. This change was apparently accidental. (I gave up after a while trying to bisect it exactly, but probably something related to 1489e2f26a4c0318938b3085f50976512f321d84.) (It didn't work on mapped relations, so it wasn't all roses.) A comment in ATPrepSetStatistics() still makes references to this being possible. I propose to remove this comment. There was some discussion about (re-)allowing this and some other commands like this, but after the recent changes to make allow_system_table_mods easier to use, I think this has less urgency, so I'd rather get the comment correct in the meantime. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --------------6850D5C27976E9F5A1B011C6 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-Remove-comment-about-SET-STATISTICS-on-system-tables.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0="0001-Remove-comment-about-SET-STATISTICS-on-system-tables.pa"; filename*1="tch" RnJvbSAyMDM1NzFhMDQwMmZhY2U5ZmViOTJhMDU4ZDg0MjMzMTc1MDE1NDVlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQZXRlciBFaXNlbnRyYXV0IDxwZXRlckBlaXNlbnRy YXV0Lm9yZz4KRGF0ZTogV2VkLCA0IERlYyAyMDE5IDIzOjQ2OjAwICswMTAwClN1YmplY3Q6 IFtQQVRDSF0gUmVtb3ZlIGNvbW1lbnQgYWJvdXQgU0VUIFNUQVRJU1RJQ1Mgb24gc3lzdGVt IHRhYmxlcwoKSXQgd2FzIG9uY2UgcG9zc2libGUgdG8gZG8gQUxURVIgVEFCTEUgLi4uIFNF VCBTVEFUSVNUSUNTIG9uIHN5c3RlbQp0YWJsZXMgd2l0aG91dCBhbGxvd19zeXRlbV90YWJs ZV9tb2RzLiAgVGhpcyB3YXMgY2hhbmdlZCBhcHBhcmVudGx5I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