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 1rz0pF-001Vij-6k for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2024 21:03:45 +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 1rz0pC-00GdCF-1L for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2024 21:03:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rz0pB-00GdBJ-01 for pgsql-general@lists.postgresql.org; Mon, 22 Apr 2024 21:03:41 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rz0p8-00493H-A1 for pgsql-general@postgresql.org; Mon, 22 Apr 2024 21:03:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id D4CF4138024A; Mon, 22 Apr 2024 17:03:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 22 Apr 2024 17:03:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding: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=1713819816; x=1713906216; bh=0MWvpiooPGOCifM/OBAsQIu+pjCr7QtLv8b9HJ6zzQQ=; b= aJomha3YZnkfyWFIJDO7/9fZPHyv2MYDASHfblW/wgOmqhjB1IXaMLwwl0dubws8 lo981y37CoKkIjAPjneWTym24zCNx69DRWXvzmb3t5OAKyMF517DfWvIJETG44Ac +paFB/bnm1fldmxYBVf+yJPjBzoTSR34XBkrm8N1mQsyQOi39Jm9Yu0f0OKQLTU9 XEcSe7yYFS8nbkvz+BsZCi/cVYR3P2UUxuielhQaP9PIYCkmnrA2SbMwDN6/sr+c n97CMHll2XbET6qQYYhvIvwO2pH1EfOoCJH8/X1eI1hxZc4hjRNmY4gXSgJskJ2s XPgittmJGsizxThx64HKCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm3; t=1713819816; x= 1713906216; bh=0MWvpiooPGOCifM/OBAsQIu+pjCr7QtLv8b9HJ6zzQQ=; b=V oFEIE/G12srFMfV+NdjY1XDaV1XMtQ6/4Uj8gx65RzGmngIGCeveZx2odHSBiAHX 2qCmn8teMjFX/JLApZEy+umlwmcY5ScjzGrDWR4tBds3Bc28C49a1MWHcb9OJULg gd9Tpfx5ycqhJeOW98/Ndt3fC3pkktHGGjMJQqSWobLvxq49SKVaVKCXiLgVoHA8 qtnFbrLVwpmQ9lEDm/XAJtBAHrffjxvBUHJM40htu82l68xDUF9FzNg3x5JnnFNp 75C04t9HtahqgPFWl/s0QaLjFZEXVnlBS+JklHTd1xRocyTHUSKSxdB819Vl4nkO oHmxqx6PM6aC5GA9taPbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekledgudehkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesth ekredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeffleegie efgfevudehtdfhkeeutdffjeevgeffgeejvedthefgudeiteefheejheenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Apr 2024 17:03:36 -0400 (EDT) Message-ID: Date: Mon, 22 Apr 2024 14:03:35 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: CLUSTER vs. VACUUM FULL To: Ron Johnson , pgsql-general References: <2870091.1713739514@sss.pgh.pa.us> <3043219.1713795953@sss.pgh.pa.us> <632e3176-13e4-4863-b8b9-bc1aba778268@aklaver.com> <4e81951f-4666-400d-b836-a020e55e168a@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/22/24 13:59, Ron Johnson wrote: > On Mon, Apr 22, 2024 at 4:21 PM Adrian Klaver > wrote: > [snip] > > Which gets us back to your comment upstream: > > "What the VACUUM docs "should" do, it seems, is suggest CLUSTER on the > PK, if the PK is a sequence (whether that be an actual sequence, or a > timestamp or something else that grows monotonically)." > > This is a case specific to you and this particular circumstance, not a > general rule for VACUUM FULL. If for no other reason then it might make > more sense for the application that the CLUSTER be done on some other > index then the PK. > > > On Stack Exchange, I've got a question on how to determine when to run > CLUSTER.  It ties in strongly with this thread.. > And the link is? -- Adrian Klaver adrian.klaver@aklaver.com