Re: Abnormal Growth of Index Size - Index Size 3x large than table size.

From: Christian Ramseyer <rc(at)networkz(dot)ch>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Abnormal Growth of Index Size - Index Size 3x large than table size.
Date: 2020-05-06 12:36:17
Message-ID: 2e2f843a-3e27-8606-89b7-56310d7c7aee@networkz.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

On 06.05.20 11:48, Ram Pratap Maurya wrote:

> We are facing a problem in our PostgreSQL production database related to
> abnormal growth of index size. Some of the indexes are having abnormal
> growth and index size is larger than table data size.
>
> One table is having 75 G.B of index though table size is only 25 G.B. On
> monthly basis we are performing vacuum to release the used space.
>
>
> I am attaching the screen shot for your reference. Could you please help
> us in resolving the same as this is degrading performance drastically.
>

Under some usage patterns, a periodic REINDEX might be advisible. See
<https://www.postgresql.org/docs/current/routine-reindex.html> for more
details, it might free up a lot of space for you.

If it doesn't, you'll need to dive deeper into what this indexes
actually are, if they are really used etc. But in cases of abnormal
growth that gets worse and worse over time, the above is the first thing
to try in my experience.

Cheers
Christian

--
Christian Ramseyer, netnea ag
Network Management. Security. OpenSource.
https://www.netnea.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Lentz 2020-05-06 12:44:30 pg_basebackup inconsistent performance
Previous Message Tim Cross 2020-05-06 12:21:32 Re: Lock Postgres account after X number of failed logins?