From: Christian Ramseyer <rc@networkz.ch>
To: pgsql-general@lists.postgresql.org
Subject: Re: Abnormal Growth of Index Size - Index Size 3x large than table size.
Date: Wed, 6 May 2020 14:36:17 +0200
Message-ID: <2e2f843a-3e27-8606-89b7-56310d7c7aee@networkz.ch> (raw)
In-Reply-To: <PS1PR0601MB36912F3E6332DE35BE11936BF0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com>
References: <PS1PR0601MB36916C9C44ADE59D7FBB8260F0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com>
<PS1PR0601MB36912F3E6332DE35BE11936BF0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com>
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
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: rc@networkz.ch
Subject: Re: Abnormal Growth of Index Size - Index Size 3x large than table size.
In-Reply-To: <2e2f843a-3e27-8606-89b7-56310d7c7aee@networkz.ch>
References: <PS1PR0601MB36916C9C44ADE59D7FBB8260F0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com> <PS1PR0601MB36912F3E6332DE35BE11936BF0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com> <2e2f843a-3e27-8606-89b7-56310d7c7aee@networkz.ch>
* 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