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 1nrSs2-0005PU-2U for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 23:14:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrSs0-0005fe-Mq for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 23:14:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrSs0-0005f8-8N for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 23:14:20 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nrSrw-0001fJ-63 for pgsql-hackers@postgresql.org; Wed, 18 May 2022 23:14:18 +0000 Received: by mail-il1-x135.google.com with SMTP id s6so2531984ilp.9 for ; Wed, 18 May 2022 16:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0fa9mT89Tu97cBFPlMqKdwyoV5HFBtUocrQBzTkF9FI=; b=hzY4p/pw8XsScY/L1xpSvNglLeO45AW/tkOH2aFpF2lCP0zzPAEeRkbpobaPRSCR7s 2Cece0CbL9S4029hDz2xAnR44T8ATwAr+XBbjoXnhU1FicYkjgq+VtKOI3AABCaeroFC 5LWTnUNEHlrJrQxHQ0O9izOkNaSTR2tLx39Bzn4PJNIl8mYFRLjd3qVFyRKesyn9kDj5 A0wQBSMai/rBfMVkHGDv+vGtw2M203g64rValK8EFyOcs7WOFEN5W+GBqzOxOiK+Q+HA eCQomH4h0mKc7hdNZi256fcjyq8swz4qfDW2bUVygbhEOF134+Eagiz/KDPkrodhv4hU JDAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0fa9mT89Tu97cBFPlMqKdwyoV5HFBtUocrQBzTkF9FI=; b=aodngvh3n0R+GK3t5cVmr2fMlq9Fj7DCdL7W97rMdbEd7rylmeFdgp6H26MPGTUOtG IFgX7kMGFyMC0O2MXLO20ETo3pK4BZkHIHsQpGg3Phdjwe93c+Y+DM1MJB2xQhvuCEKl QPg0u0pKFBu6K4U5BQZcQ0qusbTAyHiVc0G9H8XcOcdO+2nA4WejX1reSVzmIkWRbNBv ZgIPsdPSZp7O+Kz2Xf/3K+sQx1bgj+qb5rTz+U5yLPKvYfZAPO6pEaGC+vuzvtGA8M8s 8obPBpdDjBmNMCVJvq0D9GOy9JJDso1qiNjOSbU65A/rpyVoEeuxD0bLSLtBooVqmm9P O9+w== X-Gm-Message-State: AOAM533g7CW8AT/TwPc9ml9QLv4wRtBH/TimEOfUo9C67m/9ln37w/RV xNowfk7P5Y76kn+rlv9KagTd5w== X-Google-Smtp-Source: ABdhPJw4/FkXe5/lcYWiFpli6RtfVEBk47A6skQviSKe83DCMzAQShjFvTjb+3fDD7cQzsWOgZtEIQ== X-Received: by 2002:a05:6e02:1352:b0:2d1:6424:60b8 with SMTP id k18-20020a056e02135200b002d1642460b8mr438835ilr.305.1652915655288; Wed, 18 May 2022 16:14:15 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d62-20020a0285c4000000b0032e2d3cc08csm231347jai.132.2022.05.18.16.14.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2022 16:14:14 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 54CB7800910; Wed, 18 May 2022 18:14:14 -0500 (CDT) Date: Wed, 18 May 2022 18:14:14 -0500 From: Justin Pryzby To: Soumyadeep Chakraborty Cc: pgsql-hackers@postgresql.org, Michael Paquier , Ashwin Agrawal , vanjared@vmware.com Subject: Re: ALTER TABLE SET ACCESS METHOD on partitioned tables Message-ID: <20220518231414.GN19626@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thanks for copying me. I didn't look closely yet, but this comment is wrong: + * Since these have no storage the tablespace can be updated with a simple + * metadata only operation to update the tablespace. As I see it, AMs are a strong parallel to tablespaces. The default tablespace is convenient: 1) explicitly specified tablespace; 2) tablespace of parent, partitioned table; 3) DB tablespace; 4) default_tablespace: https://www.postgresql.org/message-id/20190423222633.GA8364%40alvherre.pgsql It'd be convenient if AMs worked the same way (and a bit odd that they don't). Note that in v15, pg_dump/restore now allow --no-table-am, an exact parallel to --no-tablespace. -- Justin