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 1sOSAv-00ELc6-R8 for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 01:19:17 +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 1sOSAu-0051Ha-5R for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 01:19:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOSAt-0051HS-Rs for pgsql-hackers@lists.postgresql.org; Tue, 02 Jul 2024 01:19:16 +0000 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOSAr-004aRN-VK for pgsql-hackers@postgresql.org; Tue, 02 Jul 2024 01:19:15 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4F9E01140253; Mon, 1 Jul 2024 21:19:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 01 Jul 2024 21:19:12 -0400 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=fm2; t=1719883152; x=1719969552; bh=EClyAA+WRH 7/YXkh342agTOaqMy2X72n/8dHNAvBzv4=; b=beycTq/lKZBMKsDJo+m6zpxaGN gFfaXfLtIF/DZT+0kf9ukdYVonLqdIW/quHVbf90ctkMtgYT04NBqkk0tO8LW9Ka jcYEIZ21bQOZOTIac5iXoi1m6YKZrVr369GTSRmbOPaZfWaoFg3upeMnk8FSvdJ+ 9Xa5ronhHSZ0aEWOYHj3fAoAidDDLAO+0n13GzuJHVLnhok/8dTLehk0KOczk/Fh ZB/KS6elCiHQMZu6hZP7hgXIHYzaCBooHhA1kFbR5ErKlvFbglpMWJxjMmviT8uz zTkoDgIGmEkXRf452OW7DAy5Wkydhf8lg5xQfnY5Y+7AnM8kQTudWWhC0vlw== 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= fm2; t=1719883152; x=1719969552; bh=EClyAA+WRH7/YXkh342agTOaqMy2 X72n/8dHNAvBzv4=; b=X3dRg2V8oQybUjafZ9pINRnY6CnuktfA8oHsXB6gJISu rXnrKgS/shU6E0czSgTdvvOKpX0bMVGWpBDGun8fzfIVrChJVDNjagevqml+SIsG vF8QgLtU/VKnzK02y+ZuYC7OTqbOAiHa9x98o3MaBCo/dfOvSFVrKvnUztiLdxmq V9OTc9TacaVqkm2jNbWPpQXSQkcD1GaBQGcjSlYQiWuvtTSZU3AFvqHy3VdItjQH 9sX6feBJnI2jormtuVx4X7yYSUvQ/O9YoEtqOwr+yJnrPuE6KCzbxIgo48GlIH1n W+AmWa7Bu0Ns1iOo2qUo1znNcIDArE4ejkbR5aXJBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeggdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Jul 2024 21:19:09 -0400 (EDT) Date: Tue, 2 Jul 2024 10:18:59 +0900 From: Michael Paquier To: Tom Lane 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 Message-ID: References: <202403261105.6o4ff4d6qagc@alvherre.pgsql> <202403211207.hfyirjweshbh@alvherre.pgsql> <2969207.1719880817@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Yc1Jx3YQhTVbas9A" Content-Disposition: inline In-Reply-To: <2969207.1719880817@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Yc1Jx3YQhTVbas9A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. -- Michael --Yc1Jx3YQhTVbas9A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmaDVYMACgkQnvQgOdby QH0P5w/7BfzC8HIeZlWgF3XEF40Rm1rvFKtFLNOgHHGygRGr0wXrPAStHtM+lEwv W533wDtjT2e12UmERgcUyiKOLN2lC65AqI2bnuuT5OzioFOcrZ9BhqAkWB5DcL/3 K8Sn3M+W/F0WIPp30aZ+ewOJYwL0IQzriYzIRT7m0yIVbqCwoWa83crC8bt38iGA i/szXy1tCDgueXX8780IczPUkWpFBDAFBjJF9hckGuzkzG53t/u+n11poUp7N9w+ a+qfiZOM2jHJaaGumSVBN8gk1bevA709j02lYHwv4Mp+gu1gyQiswWLHEuZpX79Q 0xc7nlSmsQWb+TDPWIRmbwyUTMCHHFNjswdnhekGKz0tAWJCk1x0gJFdQ6FngXrF JNOCX/OKZg76jaKzDLak4wG8+eNzEM8wygDDuk8DdnqViCKgmxANOxV5HqRaNYdJ mPJ9X809idGEEThXykFB+5yR83VE6sBEJb8YIRo6cI9q6JZb0YES9BjmC8dO6dXE 2ufT/kl/1vwr5aMF97RqoZ4P55Exfhyl+JoaO7EAswm+JWokxt6BxiLyi82HcAuX VgSEz9/hxSWnrL8NRe1du1/aSUH6bNB+42pgY60+TInyLERTwHsvKvFXp5FXXy1X w28CZLc4Uznv3LLyZ/8Bv5QlV2gpT9oMMGyiAMo9JWThu+ssjkg= =DMYK -----END PGP SIGNATURE----- --Yc1Jx3YQhTVbas9A--