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 1nZvWB-0008Tu-Kj for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2022 14:11:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZvWA-0000Xy-IY for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2022 14:11:18 +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 1nZvWA-0000Xj-9a for pgsql-hackers@lists.postgresql.org; Thu, 31 Mar 2022 14:11:18 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nZvW7-0003k3-26 for pgsql-hackers@lists.postgresql.org; Thu, 31 Mar 2022 14:11:17 +0000 Received: by mail-io1-xd36.google.com with SMTP id 125so28737169iov.10 for ; Thu, 31 Mar 2022 07:11:14 -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=9N5PkQ5czm2bIek7oSZ0c2StA+0u9ljAv8yznrfI+t0=; b=0nH8NqixqgVUK5NgDNF+J7XgCPGoOebN2TKDspbTJofFakx67ywFHGtKmv+qic/R1B VexCkTUZfOzKmWTUy+q9WNRGbEkn2B18/vMgONQC3wFLVdkar1JyCxPTs++au66ISzZO AV2wJmfMpqB2JoUECzf3e0u37BY1a2byuJZw9ebIMkhzOZ5ZlpYQmQnyTzH9jm0iDs8F ErS97C03r7GTOMjIDh3XCb4q69jtdbbN4ULful3mlZtDw7bsL+G3qlaHopi75yDYFPOp ztPUe1aLyatqwdCoIpdMhT5VZJzKaTXf4PCtwEu69Di3RyG1rTdy4hzBcrHPjtf5Ctrv xSaQ== 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=9N5PkQ5czm2bIek7oSZ0c2StA+0u9ljAv8yznrfI+t0=; b=To47wI/Zj8Sx+kv4NbTdB3lrmlSOmv46fIPWpupABO5cYK8+kSt/VARpzfNb7VQVi7 3PV3Q9SED1jUQs6M9dRrXyxAuuPFu4c4DeUdXqOte8rxkodpcXlAiRy8YeBAipI1ZAFD ErT7GZpI05RzUagbbL/MsvrFDSK7PlZKjdOOBND7Ob8x/S+GBHP8lPqv1zp7S19S9801 9NUfWmSgSOdqvUSNOofbWUsE7X/dZt9uXaot4+uiUyJXLiKHPLR+eU74gvVNKDs2iGpX PRbs8COEF+dpaYCEsIFSXUZddmUoL/hOlJri2NzO202ABEhZ3NnabQxF9qMdi98nOh0S iCqQ== X-Gm-Message-State: AOAM533iDHnS35Zi2Aw3c3ELkOslD0a1Smhv4MdU+lTMGZtj51rbHpkB v06neyMVd2Vxr8B+Jxswkycd5g== X-Google-Smtp-Source: ABdhPJw4BV8G3UJyg6KleRUMD3pgBSqCmTO3FtFPOmtYJQHgiXraOxVW5X27o65WFe6X8ze/y6CV3w== X-Received: by 2002:a05:6638:2410:b0:323:8ca8:1621 with SMTP id z16-20020a056638241000b003238ca81621mr2918965jat.295.1648735874182; Thu, 31 Mar 2022 07:11:14 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id p3-20020a92d483000000b002c7e1877f5dsm11814477ilg.37.2022.03.31.07.11.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Mar 2022 07:11:13 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id EC0AD8009D6; Thu, 31 Mar 2022 09:11:12 -0500 (CDT) Date: Thu, 31 Mar 2022 09:11:12 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: Michael Paquier , =?utf-8?B?5p2O5p2wKOaFjui/vSk=?= , pgsql-hackers@lists.postgresql.org, =?utf-8?B?5pu+5paH5peMKOS5ieS7jik=?= , Zhihong Yu Subject: Re: CLUSTER on partitioned index Message-ID: <20220331141112.GO28503@telsasoft.com> References: <202203311054.fk6zeitz4nq5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202203311054.fk6zeitz4nq5@alvherre.pgsql> 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 On Thu, Mar 31, 2022 at 12:54:36PM +0200, Alvaro Herrera wrote: > I realized after posting that we used to allow clustering toast tables, > but after my changes we no longer do. (Justin's version had a > RELKIND_HAS_STORAGE test here instead, which seemed a little too lax.) I > don't know why we allowed it and I don't know of anyone who has ever > used that feature and we don't have any test coverage for it, but I > don't have any reason to explicitly disallow it either. So I propose to > continue to allow it: Good catch. My daily vacuum script would've discovered that they're no longer supported, as it tests for (among other things) c.relkind IN ('r','t'). That clusters tables that have an indisclustered set and vacuums various others. (BTW, it's the same script that discovered in 2019 that clustering on expressional indexes had been broken by the heapam changes). I think the response should be to add a test case, which could be 0001 or 00099.