When to REINDEX a serial key? - Mailing list pgsql-general

From Ron
Subject When to REINDEX a serial key?
Date
Msg-id 7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com
Whole thread Raw
Responses Re: When to REINDEX a serial key?
List pgsql-general
Server: RDS Postgresql 12.5
Client: Vanilla Postgresql 12.5

Like most systems, we have lots of tables indexed on sequences.  Thus, all new keys are inserted into the "lower right hand corner" of the b-tree.

The legacy RDBMS which I used to manage has a tool for analyzing (not in the Postgresql meaning of the word) an index, and displaying a histogram of how many layers deep various parts of an index are.  Using that histogram, you can tell whether or not an index needs to be rebuilt.

How does one get the same effect in Postgresql?

--
Angular momentum makes the world go 'round.

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: The Curious Case of the Table-Locking UPDATE Query
Next
From: David Rowley
Date:
Subject: Re: When to REINDEX a serial key?