Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVewS-000bFw-OO for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Feb 2024 21:49:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rVewR-0084ta-DZ for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Feb 2024 21:49:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVetK-0080UK-V9 for pgsql-hackers@lists.postgresql.org; Thu, 01 Feb 2024 21:46:40 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVetH-004ajN-Ki for pgsql-hackers@postgresql.org; Thu, 01 Feb 2024 21:46:37 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CE9AF5C021D; Thu, 1 Feb 2024 16:46:32 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 01 Feb 2024 16:46:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1706823992; x=1706910392; bh=6aVOpBranr 4Am74aHaqzRJU+KOc4hEaVLJlMWMqi/Lw=; b=GF4wvtaJcf8VU8ee9CnSfeBxBq X/ghsoG/gmplee7Hseek5ThIqfEZiyMpdPGL9ljZVyuXjfZ5H7eTbzvIG2/94ugD 7tRF43vXOJMJRTQ8nhwJi2BUaLTF9+FpSZFshiP7Yd0NNMrEZnvFADwQWupUbxg5 foCGCbXsx5JZro3A/d2x3rg2LQyOQ1f5g0yaUWhCs8xVUJUhUahACJ6yi252dP/4 LWKGD1jr24ACn9iDPNcgRKxCKJI8Lis/4AUpXj3+/vARjSOgumR1hJEIiioVZxPg eXudWI1M40lEwQBYiCj1tqnbLQuQCREzLpN/ssQQKGyiKzLx0NEAXwyiuIaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706823992; x=1706910392; bh=6aVOpBranr4Am74aHaqzRJU+KOc4 hEaVLJlMWMqi/Lw=; b=HPpjl8Rx9m5Ypa8QW7UAO267utFYDRqsQDQfQ0UagTKL 5PCydM8efaz+SLMdJoyy2VjM+1CNTeBVKluSgxKYBPvB6oJF0mZmyaqq+1Unizzu YTwtPVszbI+gBhuRmc/Z3m0D+ZTaimzr0/YS1oPAcck5FaAIGGUfTViuYvRG7IeQ skBCIT0z7S0aPeRXOQsHcrcUJ4GQe0nj6CozMU0Lu4H07s8ZLacgmZ0UeIOIrXvI 6pWBxJeEq2SSKrzGHTnuQ+MaMOvUWRyNzYr+BL37kjDTk1YAUofbsvLdhJ28+hzE gY/b6u43wBD7KElT4GWFq7iRCn2ex9UyYRD+vLQOcg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduuddgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreer tddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlse hprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteel geeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdig hiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Feb 2024 16:46:29 -0500 (EST) Date: Fri, 2 Feb 2024 06:46:13 +0900 From: Michael Paquier To: Alvaro Herrera Cc: Justin Pryzby , Soumyadeep Chakraborty , Zhihong Yu , pgsql-hackers@postgresql.org, Ashwin Agrawal , vanjared@vmware.com Subject: Re: ALTER TABLE SET ACCESS METHOD on partitioned tables Message-ID: References: <202402011550.sfszd46247zi@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BbDxQ4fshriDFvh0" Content-Disposition: inline In-Reply-To: <202402011550.sfszd46247zi@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --BbDxQ4fshriDFvh0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 01, 2024 at 04:50:49PM +0100, Alvaro Herrera wrote: > I think this works similarly but not identically to tablespace defaults, > and the difference could be confusing. You seem to have made it so that > the partitioned table _always_ have a table AM, so the partitions can > always inherit from it. I think it would be more sensible to _allow_ > partitioned tables to have one, but not mandatory; if they don't have > it, then a partition created from it would use default_table_access_method. You mean to allow a value of 0 in pg_class.relam on a partitioned table to allow any partitions created on it to use the default AM in the GUC when the partition is created? Yes, this inconsistency was bothering me as well in the patch. -- Michael --BbDxQ4fshriDFvh0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmW8ESUACgkQnvQgOdby QH0pSQ//dsczNO/LQ3Z2D+CFo1gThAe75HdN4O5BVKg+ztmsHvQ5P5f/Ldx8Y7Fp YDgKSNvCwKV6lvbeWjMtDO33oDBWiu9W8980iFucATwo8hhT5gFVMJCns7dFboDr /AbSTv08bx6a/31XfbMOvWDocx2uB2ddZo7CaX+ASnIBw/7bxjrIG5ZkRVDWKpoS auZ6CaxNYBTpBxqm+GmAQbZyqSnSMv7niQ0Ks1cvnrlSZ3wWWj/6T1M+eTQavxzq prQf85U+tmacIxc3rX+SyBWcCdXeR59EoPwTGBBBqbcI4cRjMi2QvOSAnkOJUA19 49T9xtxMY4wNFNa7xLDjTKse2qS+oFcTTG5wmzOO3D/C2Kdyfuk5renGCkaPRtNQ FRNWyaDjU9DLVhGM2+Gr9SlcgyN2tneXZ2BM06X61gzEzGZls8GaXtJxmc1uT5Ii ADVRXA6XGxfG20PsAN5vevyqfZ3pVVRkbeuslB6c9evSl6FIOxTGPhyPnTd6moKF nMuMNQotFaK7f1Gh7hTpSHTd7SJfu0tJrHGS+Ht5reZlrNTMv6UUit2WUWkyhH4c POk4wy0N0athrXsj75IxHq9PGWieKfS6axHTCfRm33tSEcAjn1Ze6evHmOL9nsg+ Ktv2Q8ugugArj5g4Lzq3pBpHGMblpSPk68bEDRipAu4197Xj5k8= =RGUt -----END PGP SIGNATURE----- --BbDxQ4fshriDFvh0--