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 1m604t-0001Q2-Ji for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jul 2021 00:27:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m604s-0000My-Cw for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jul 2021 00:27:10 +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 1m604r-0000Mp-WA for pgsql-hackers@lists.postgresql.org; Wed, 21 Jul 2021 00:27:10 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m604o-000244-Vk for pgsql-hackers@lists.postgresql.org; Wed, 21 Jul 2021 00:27:09 +0000 Received: by mail-pf1-x431.google.com with SMTP id d9so923334pfv.4 for ; Tue, 20 Jul 2021 17:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=s+uKq3/+lPHyKIhx71QBkj0cSb2zrMUqG9uXoBmztVo=; b=ctXbnTLgBe1dQ2i+FQ5bx4GllKP4iwN+vBT1mMcXFmUedXDLaR+p3NIecCTrXxK5O8 jctVf/6ER2TXg69vlJAodqnD2Em+OPq+vjR+6aFITRz1rx7IyCR1rzt1q/wOKxT3kDo4 7IXMSP0MscpmCNJ5kVtXd/6O0CYFK9d+bxK/AvPGl8/RA8KfTvU51S1MUF+CVnZik96N iu1GZb+8Max6EO3EI+xZ0PC11xQyIqYQTisKnJe9q+fHvU2rUvt0BmKqyeyiap3Dsd8G NmDkX1f6x8xaivYZFtwZNjvA3rXe8r6SabP3HttPqJjhlMA0p0Pi3uofw8CSoGaH2kj4 TCQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=s+uKq3/+lPHyKIhx71QBkj0cSb2zrMUqG9uXoBmztVo=; b=lAktP2m8bPPOfMQTLsf4X2WSXec4G+TD7hPltkugrfq8TbusTrLm+wl7gLMJH7o+9y pNE4c6Nhrv17pCyc9kLbZY/bprE8ILX8GrEZ/VXmOZN14++9CrhaVMLRLQ7R80kD6ibF bUmJ96fpUXrhl/CzS3qUV5R8cwsFgDnN7JP/7nVvh9ZTzAQ/xxrRCUWonBEFRSZ14fT/ vnj34J4ouBPmxzW7bTgDugv/8X4V6g5/IIMCkZsMEtLLI4Pua+1UIEuM8N+WQ37KfGxP 6s+fTJxpgmuFCiWE9l6KSqpjcZG6/KgRxZtx0XTfD2kjuPVOmZUxiuH7uuchfTpOdGFt /rkA== X-Gm-Message-State: AOAM532Lgl/qjrkn6fa4INvtAh0WM4it4zApBX2FldPjU7dcpQDPykoJ Evh2Xqo8B08TXrEqcpVmU/X8Xw== X-Google-Smtp-Source: ABdhPJwVeQn0CkKT1qLl670j7iYubfAbRGdzIIX55JCykwzT2cixQAXO1GF4JrzQo31dp3sS/QqzDQ== X-Received: by 2002:a65:62da:: with SMTP id m26mr33170056pgv.370.1626827224574; Tue, 20 Jul 2021 17:27:04 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([201.186.208.143]) by smtp.gmail.com with ESMTPSA id m34sm28282793pgb.85.2021.07.20.17.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 17:27:03 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 056F52A077A; Tue, 20 Jul 2021 20:27:02 -0400 (-04) Date: Tue, 20 Jul 2021 20:27:02 -0400 From: Alvaro Herrera To: Justin Pryzby 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: <202107210027.vfv6wn3hvfer@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210402200314.GA6592@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I have to wonder if there really *is* a use case for CLUSTER in the first place on regular tables, let alone on partitioned tables, which are likely to be large and thus take a lot of time. What justifies spending so much time on this implementation? My impression is that CLUSTER is pretty much a fringe command nowadays, because of the access exclusive lock required. Does anybody actually use it? -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/ "Ninguna manada de bestias tiene una voz tan horrible como la humana" (Orual)