Re: Re-index

From: Keith <keith(at)keithf4(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Yambu <hyambu(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Re-index
Date: 2020-11-24 15:09:49
Message-ID: CAHw75vsjnQ10aN=jbTTYECJMtC-vs2XLhx8AoJORpQn_GyS7=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Nov 24, 2020 at 9:15 AM Bruce Momjian <bruce(at)momjian(dot)us> wrote:

> On Tue, Nov 24, 2020 at 12:53:42PM +0200, Yambu wrote:
> > Hi
> >
> > How do I check if an index is bloated?
> >
> > Also if i delete a number of records eg 60% of the records in a table ,
> do i
> > need to reindex?
>
> See:
>
> https://wiki.postgresql.org/wiki/Index_Maintenance
>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
> EnterpriseDB https://enterprisedb.com
>
> The usefulness of a cup is in its emptiness, Bruce Lee
>
>
>
>
The wiki that Bruce linked is a great resource. I've also written a tool to
better help monitor for table & index bloat

https://github.com/keithf4/pg_bloat_check

Keith

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2020-11-24 15:39:31 Re: ERROR : invalid transaction termination : PostgreSQL v12
Previous Message MichaelDBA 2020-11-24 14:38:09 Re: Streaming Replication replay lag