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 1sOSL9-00EMI5-Vw for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 01:29:51 +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 1sOSL7-0057u2-SF for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 01:29:50 +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 1sOSL7-0057tu-IQ for pgsql-hackers@lists.postgresql.org; Tue, 02 Jul 2024 01:29:49 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOSL5-0047w8-BM for pgsql-hackers@postgresql.org; Tue, 02 Jul 2024 01:29:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4621Tirf2974878; Mon, 1 Jul 2024 21:29:44 -0400 From: Tom Lane To: Michael Paquier cc: Justin Pryzby , Alvaro Herrera , Peter Eisentraut , Soumyadeep Chakraborty , Zhihong Yu , pgsql-hackers@postgresql.org, Ashwin Agrawal , vanjared@vmware.com, Alexander Lakhin Subject: Re: ALTER TABLE SET ACCESS METHOD on partitioned tables In-reply-to: References: <202403261105.6o4ff4d6qagc@alvherre.pgsql> <202403211207.hfyirjweshbh@alvherre.pgsql> <2969207.1719880817@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Tue, 02 Jul 2024 10:18:59 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2974876.1719883784.1@sss.pgh.pa.us> Date: Mon, 01 Jul 2024 21:29:44 -0400 Message-ID: <2974877.1719883784@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Mon, Jul 01, 2024 at 08:40:17PM -0400, Tom Lane wrote: >> While this won't actually fail against a v10 or v11 server, it won't >> show anything useful either (because relam is zero for heaps in >> pre-v12 versions). Perhaps there should be a check to only add the >> extra column if server >= v12? > I've thought about that and would be OK to restrict things with this > suggestion if you'd prefer it. However, I could not decide in favor > of it as using a psql \dP+ >= v18 gives the possibility to show the > AMs of partitioned indexes, as these are also part listed in \dP. So > I've found that useful in itself. Ah, I'd forgotten that partitioned indexes are shown too. Never mind then. regards, tom lane