From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: When to REINDEX a serial key?
Date: Tue, 6 Jul 2021 04:35:41 -0500
Message-ID: <7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: When to REINDEX a serial key?
In-Reply-To: <7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com>
References: <7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox