Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phJWt-0007cr-3H for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 00:19:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phJWr-0006ya-O0 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 00:19:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phJWr-0006yR-EM for pgsql-hackers@lists.postgresql.org; Wed, 29 Mar 2023 00:19:05 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phJWo-0004vI-AC for pgsql-hackers@postgresql.org; Wed, 29 Mar 2023 00:19:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B24E9320094C; Tue, 28 Mar 2023 20:18:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 28 Mar 2023 20:18:58 -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:sender :subject:subject:to:to; s=fm2; t=1680049137; x=1680135537; bh=ZT +y3AsxBuMninzTOai3+4uwa6iDgLVnWLkUhxFDl/c=; b=2V0gF98yjJo3eHxFP+ AjS2dHwT53eRYtTAvIOQWTXXw+flw96uy0soEfOrLvIZt13q7IqJ/lECzbgwkfRd IxBxRUKFwjTGtgah4EQtgGnnFHO0xqqhj1LiBXxOuHIMvGsToiAx6cMxdwUxUi+u /IJNuOBw4ur1DBndDRRAwcQIm2gHg89guPPE5G7hhVn/HPmsAuxX13gfIWhY6J7Z RicsorZcXsGc4cE6h6orYCyxREmUTKDC4xbXd2hZ+FcAsNoNEphKJJ7SCdFWBgjC +8Ho6skPFiof8jirEemdRYPcA7QX71NTi/WSYxkB9b/51uUeoPBx316WSJDjS//d yKrw== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680049137; x=1680135537; bh=ZT+y3AsxBuMni nzTOai3+4uwa6iDgLVnWLkUhxFDl/c=; b=UdEsX+0AIRj8Q2E2WS15NLGCvprmr /WIh1zUKf9xpEYnu0rLffSapVe3L6LuBH82lygyd1Tuc7unuSRxaATBBW67zMA5H RUj0oEc1McH7Bf08IEZKEAneZ8KU3KzYXvE9ikqn4ECRH1S4xvLXODpfkkIA2hLA AZBoICsPZm2oH1QQAR9m80P9dURzm68mow+aHPKQONlo6hAgnaIMW9uduYpTwbDD ilW4cOm9CfO8gUko9USC1IibtvlvR1YoMae1CgDBau/4vusxi4paqPxyMdvadI0k Wt1uO5/qVDfqBk5j+gv/aAaBdPjfUxVXLDaIIK/jk2PcFNSQXT3tM8wFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehhedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Mar 2023 20:18:53 -0400 (EDT) Date: Wed, 29 Mar 2023 09:18:50 +0900 From: Michael Paquier To: Justin Pryzby Cc: 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: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PF7gkfTwvtfT3oBA" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PF7gkfTwvtfT3oBA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 28, 2023 at 02:56:28PM +0900, Michael Paquier wrote: > Hmm. This is a good point. It is true that the patch feels > incomplete on this side. I don't see why we could not be flexible, > and allow a value of 0 in a partitioned table's relam to mean that we > would pick up the database default in this case when a partition is > is created on it. This would have the advantage to be consistent with > older versions where we fallback on the default. We cannot be > completely consistent with the reltablespace of the leaf partitions > unfortunately, as relam should always be set if a relation has > storage. And allowing a value of 0 means that there are likely other > tricky cases with dumps? >=20 > Another thing: would it make sense to allow an empty string in > default_table_access_method so as we'd always fallback to a database > default? FYI, I am not sure that I will be able to look more at this patch by the end of the commit fest, and there are quite more points to consider. Perhaps at this stage we'd better mark it as returned with feedback? I understand that I've arrived late at this party :/ -- Michael --PF7gkfTwvtfT3oBA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmQjg+kACgkQnvQgOdby QH3+6w/8CSaVdtHSxXnRStyJBnd5/BMEV7x6f+DaoWLbcO+uPqlOBHixmq+8vayy b9N0qbhSxsGmWaySYhf/HbG/FULMiKuYw9lrpJAzy2mH5zrI7h/O5hQr9aHrCaay rC9uqmY75ouH/1WUTm9UtNgzBGStmrJD0pL5RMVOW++GMu53gUjsdemanmIuyTH6 fcwjSCPUTKNnTo/WrA3fF8z6KmDecNkTm9VtZyoYrFuEk5yFMuqAhmD1O7uzQHjT NMiDeTVKJoRz69u6p1ftRKpZBkJKQ0cPXJlXwBzEM+WHioylEP1xMSMhRjGGq9K+ m87X1Mv5rog8V2JL8T0v0N9ZjsJNDyEspoN3UJNxk8Ev0ncvvp8OS+/Kh/e/qfEn MvotpAZ23k5E4wS3l9EX0uUI2OpwC8RH4sciiLDz0Ca2hnns+lWCK3O7ATkrf3/A MaMkEP5FoVDJ1AQasp6ySpQAJ0CdGUaUYVHpM60NxSv8zFYzE7cG7nTRsUTf6gJb iSUy4Wi3JgejnicPHSPUpfprySFDTkxib+j77ugIAIcl6zfdCl29n/8JupOO2hjU 80Z0L6pWcDlDv2hCIIPiF7MDvvjWFNpYjfjkN7tVyGoIQPrKyzyRIAl40xb2Zzbi 8jnaAYf+NpIYN0k1VgTPPYbLqBEVIIhc1XlOP8mKmj82kR/glv4= =t4iY -----END PGP SIGNATURE----- --PF7gkfTwvtfT3oBA--