Re: Reindexing - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Reindexing
Date
Msg-id 6a9ed5b7ca2f7c1ba61f27a969cebcbd50cff4b6.camel@cybertec.at
Whole thread Raw
In response to Reindexing  (Wasim Devale <wasimd60@gmail.com>)
List pgsql-admin
On Fri, 2025-04-25 at 10:46 +0530, Wasim Devale wrote:
> I want to automate the reindexing and planning to do it concurrently twice a week.

That's probably unnecessary.

> Can someone highlight at what percentage of index bloat can decide the frequency of reindexing?

It is perfectly normal for a B-tree index to have an "avg_leaf_density" of 30 or so,
as determined with pgstatindex().  Consider reindexing only for indexes that are
doing worse *and that keep deteriorating*.

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Wasim Devale
Date:
Subject: Reindexing
Next
From: Bo Guo
Date:
Subject: When indexing is needed for a temp table