pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ashish Chugh <ashish.chugh@lavainternational.in>
To: Ravi Krishna <srkrishna1@comcast.net>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Ram Pratap Maurya <ram.maurya@lavainternational.in>
Subject: Re: Abnormal Growth of Index Size - Index Size 3x large than table size.
Date: Thu, 7 May 2020 09:16:46 -0700
Message-ID: <d83346c9-86d1-f2f3-5aa2-3cb9fe99e5c8@aklaver.com> (raw)
In-Reply-To: <TY2PR06MB3407499E38896400D47FB188E4A50@TY2PR06MB3407.apcprd06.prod.outlook.com>
References: <PS1PR0601MB36916C9C44ADE59D7FBB8260F0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com>
	<PS1PR0601MB36912F3E6332DE35BE11936BF0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com>
	<C2036EB3-1B4B-4C56-9D68-9803FC3E4A04@comcast.net>
	<PS1PR0601MB3691E50D72A0F91FACE42116F0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com>
	<47D4D5C5-AEFD-4C9B-8055-6B67F06CA085@comcast.net>
	<TY2PR06MB340758AABAEF6EADDCBD2CB4E4A40@TY2PR06MB3407.apcprd06.prod.outlook.com>
	<0A85F167-F350-4F26-9E7A-BFAF784B0E1A@comcast.net>
	<TY2PR06MB3407499E38896400D47FB188E4A50@TY2PR06MB3407.apcprd06.prod.outlook.com>

On 5/7/20 6:34 AM, Ashish Chugh wrote:
> Hi Ravi,
> 
> Thanks for your reply. One more query from our side.
> 
> To improve performance and release index space from database, We are 
> running FULL Vacuum on monthly basis.

As I recently learned:

https://www.postgresql.org/message-id/1392022649.706483.1587523402642%40mail.yahoo.com

To release index space index without a FULL vacuum you need to REINDEX. 
Look at the message above for more information.

> 
> On PostgreSQL website it is not recommended to run FULL Vacuum on 
> Production Database and this also requires long downtime along with huge 
> log space requirement.

> 
> What are the recommendations regarding vacuum. Can we run FULL Vacuum on 
> monthly basis or we should be running Online Auto Vacuum instead.
> 
> Regards,
> 
> Ashish
> 
> *From:*Ravi Krishna [mailto:srkrishna1@comcast.net]
> *Sent:* Wednesday, May 06, 2020 9:07 PM
> *To:* Ashish Chugh <ashish.chugh@lavainternational.in>
> *Cc:* pgsql-general@postgresql.org; Ram Pratap Maurya 
> <ram.maurya@lavainternational.in>
> *Subject:* Re: Abnormal Growth of Index Size - Index Size 3x large than 
> table size.
> 
> 
> 
>     On May 6, 2020, at 10:52 AM, Ashish Chugh
>     <ashish.chugh@lavainternational.in
>     <mailto:ashish.chugh@lavainternational.in>> wrote:
> 
>     Hello Ravi,
> 
>     Total number of indexes are 10 and size is 65 GB. Shall we consider
>     this as a normal scenario or we need to look into the growth of the
>     indexes as this is increasing day by day and table data is not
>     increasing so drastically. Due to this performance degradation is
>     there and we have to run full vacuum on monthly basis.
> 
>     Table size is only 25 gb.
> 
>     Any help in this regard is appreciable.
> 
> Indexes are stored just like tables. From storage perspective there is 
> no difference between a table and an index.
> 
> So the sum of 10 different tables to 65GB, compared to 25GB of one table 
> sounds possible.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (10+ messages)

Message-ID: <d83346c9-86d1-f2f3-5aa2-3cb9fe99e5c8@aklaver.com>
Permalink:  ../d83346c9-86d1-f2f3-5aa2-3cb9fe99e5c8@aklaver.com/
Also on:    postgresql.org/message-id/d83346c9-86d1-f2f3-5aa2-3cb9fe99e5c8@aklaver.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: adrian.klaver@aklaver.com, ashish.chugh@lavainternational.in, srkrishna1@comcast.net, ram.maurya@lavainternational.in
  Subject: Re: Abnormal Growth of Index Size - Index Size 3x large than table size.
  In-Reply-To: <d83346c9-86d1-f2f3-5aa2-3cb9fe99e5c8@aklaver.com>
  References: <PS1PR0601MB36916C9C44ADE59D7FBB8260F0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com> <PS1PR0601MB36912F3E6332DE35BE11936BF0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com> <C2036EB3-1B4B-4C56-9D68-9803FC3E4A04@comcast.net> <PS1PR0601MB3691E50D72A0F91FACE42116F0A40@PS1PR0601MB3691.apcprd06.prod.outlook.com> <47D4D5C5-AEFD-4C9B-8055-6B67F06CA085@comcast.net> <TY2PR06MB340758AABAEF6EADDCBD2CB4E4A40@TY2PR06MB3407.apcprd06.prod.outlook.com> <0A85F167-F350-4F26-9E7A-BFAF784B0E1A@comcast.net> <TY2PR06MB3407499E38896400D47FB188E4A50@TY2PR06MB3407.apcprd06.prod.outlook.com> <d83346c9-86d1-f2f3-5aa2-3cb9fe99e5c8@aklaver.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