pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Ron <ronljohnsonjr@gmail.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: When to REINDEX a serial key?
Date: Tue, 6 Jul 2021 14:25:39 +0200
Message-ID: <24a46851-843e-ce3b-1c63-bffdf72eb429@enterprisedb.com> (raw)
In-Reply-To: <4cc31261-a074-f756-9739-c53400dd298b@gmail.com>
References: <7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com>
	<CAApHDvq9e0-EuR9955CXbXCu8mNa8cuEyRRXLCJLfZKrtyHf6Q@mail.gmail.com>
	<4cc31261-a074-f756-9739-c53400dd298b@gmail.com>


On 06.07.21 14:19, Ron wrote:
> On 7/6/21 4:52 AM, David Rowley wrote:
>> On Tue, 6 Jul 2021 at 21:35, Ron <ronljohnsonjr@gmail.com> wrote:
>>> 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?
>> There are a few suggestions in
>> https://wiki.postgresql.org/wiki/Show_database_bloat
> 
> How does bloat relate to a lopsided b-tree?

There is no such thing as a lopsided B-tree, because a B-tree is by 
definition self-balancing.  Perhaps that answers your original question.

Bloat is generally something people are concerned about when they think 
about reindexing their indexes.  But append-only workloads, such as what 
you describe, normally don't generate bloat.





view thread (5+ messages)  latest in thread

Message-ID: <24a46851-843e-ce3b-1c63-bffdf72eb429@enterprisedb.com>
Permalink:  ../24a46851-843e-ce3b-1c63-bffdf72eb429@enterprisedb.com/
Also on:    postgresql.org/message-id/24a46851-843e-ce3b-1c63-bffdf72eb429@enterprisedb.com

 · 

reply

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: peter.eisentraut@enterprisedb.com, ronljohnsonjr@gmail.com
  Subject: Re: When to REINDEX a serial key?
  In-Reply-To: <24a46851-843e-ce3b-1c63-bffdf72eb429@enterprisedb.com>
  References: <7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com> <CAApHDvq9e0-EuR9955CXbXCu8mNa8cuEyRRXLCJLfZKrtyHf6Q@mail.gmail.com> <4cc31261-a074-f756-9739-c53400dd298b@gmail.com> <24a46851-843e-ce3b-1c63-bffdf72eb429@enterprisedb.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