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 1v1WSG-009ZZ5-VJ for pgsql-general@arkaria.postgresql.org; Wed, 24 Sep 2025 20:51:12 +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 1v1WSF-00FkLy-9l for pgsql-general@arkaria.postgresql.org; Wed, 24 Sep 2025 20:51:11 +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 1v1WSE-00FkLp-VS for pgsql-general@lists.postgresql.org; Wed, 24 Sep 2025 20:51:10 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v1WSD-002FKo-0C for pgsql-general@lists.postgresql.org; Wed, 24 Sep 2025 20:51:10 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-b331d5cad07so4905066b.2 for ; Wed, 24 Sep 2025 13:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758747068; x=1759351868; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d97yNKMqluAssnjAMIEGX8ez+L+x53CYrikEwKPQxcQ=; b=kDdGOnEe2DxMk6Z5kumO470s/4P/pmbr4JSPB0pJ8HI3Rzk8ftq0bArXoon97k7vmd 019eLVMltTAQzh1bXB9oCJiCSPbxLkpXHcQvkIC4+IwWM0okUxmoKENYyc9vZWeFqv9n GAAPBBMQTXcbFgQ1Cy9cqEQ19vo6LDwqhdeUWaUOJVnA5rHIDgxYoAc/Ac/5gSzUgQy2 KAJh9I9HNprpU8B1ICBzE2RsViM8B38wbyHs6gbBerPqGUoSxzE8j+1tc1XRUE9LdHE3 aj/uPtZ0CwaLXDyoEinDV7oc7Zp3A7Uz4uzIPpQq2vmgrpfIQzrN4I8n8Y+ULsPUuWQi qg0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758747068; x=1759351868; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d97yNKMqluAssnjAMIEGX8ez+L+x53CYrikEwKPQxcQ=; b=eSyV+eRBBLHq8ZHJ/ihmhTt30XlIijlCYY4xIky+0JFhQGzwoVtOJ3qf1DGXnyiyJ3 9tOymPxCb9ryYC9ccyXozUubbgcHNcMRNRm0ebWKHIjh/ltZjeftV2V0IOOfxuVJhkRk mzh/pnkEpgrcZRcA0vjR8PBty9pBGPS8/ePHu6VivZ3bVkNvSpein1vdNT+GsXZ5GdoN +s1n1IS5KkcqnAi7+srcoyEefdSsI+kLrMe7ekUaBaD3QJpXvcwRed/GySD7rnbfQyfF E/NDeUhBhFtFB4VD10Xmhq/Qqu8CGBWGpHRcL8IlEk6aXYvYn3WsgNCnMUjMvQp31cKC k0rA== X-Gm-Message-State: AOJu0Yw38A0xtGfprvvqohPWhIwGICbNE5I1V8O4cfBJwV40V3wcJSO1 LcG0RyC0sdCRjI1fCzIxvQ8CtA0TJD+alex+wnQuwEiv0+5LKLqBX6zl X-Gm-Gg: ASbGncsqvqQAw+06nqMdcAvML6aq0Qd53eSMWcIh2H8lnyQkMF6J3bwLNIvCZQd/NZp htTWhnTFiaoQd87MFyo2q6XRBtjaxf/tkDidhClNF1o9lrGIASKuAfmv2V59zhGq02/EuTgWlUo pkPMt9cgOKtuz1Ag7hDsW2iNvV9Yz2iYpkPf7c8rtB3vgOwMjYNRiWluNCQyTPkEqUdh3SBSIdj 51cWZ+Q9GmviiNg5zLhDgcNR+Ze4c9T2Smc3WLr+scSrXhOQJ9QuY7mZVdeNoZ60OzlxgfhMfx2 cH7cw+54jjqcxhZMjQQFG4crl0TXYSdtPE9BgcqRyusglYoFjjqvJ4wmFeAAtj4C82xiDHBSw7O KayjWf5ufAF+Xxvkc9fgg8Nq2A8q+feQ2FALuM7U/t4R8 X-Google-Smtp-Source: AGHT+IGiljGfbZVFb33o+2gjGTNyyEsaIiNaG4m42QInN6Dcz1rGLQgRGPg3qq9ru1kJG7Uk38aMPA== X-Received: by 2002:a17:907:1c15:b0:b0b:6fe0:ed53 with SMTP id a640c23a62f3a-b34be6d59b7mr53067466b.7.1758747067614; Wed, 24 Sep 2025 13:51:07 -0700 (PDT) Received: from smtpclient.apple ([188.212.112.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b353e5d0526sm14961366b.12.2025.09.24.13.51.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Sep 2025 13:51:07 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: Re: Index rebuilding strategy From: Alban Hertroys In-Reply-To: Date: Wed, 24 Sep 2025 22:50:56 +0200 Cc: "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <8E8DB597-41BA-4E6F-A792-13B8AA9238D2@gmail.com> References: To: Siraj G X-Mailer: Apple Mail (2.3864.100.1.1.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 24 Sep 2025, at 22:42, Siraj G wrote: >=20 > Hello Experts! >=20 > What are the top pointers we should consider for index rebuild? Check = its size, bloat estimate, heavy Updates/Deletes? >=20 > Please highlight the best practices. I think just any pointers of corruption, really. OS updates with = differing collation implementations, known flaky hardware or driver = issues, checksum discrepancies if you have those turned on and get any = of those. The need to rebuild indices should be quite rare. Regular vacuuming and = analysing should take care of most of the need, with much of those = happening automatically anyway (could need some tuning though). Regards, Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.