Re: how to slow down parts of Pg - Mailing list pgsql-general

From Adrian Klaver
Subject Re: how to slow down parts of Pg
Date
Msg-id d65819bc-75a6-171e-a434-0ab692af66f9@aklaver.com
Whole thread Raw
In response to Re: how to slow down parts of Pg  (Virendra Kumar <viru_7683@yahoo.com>)
List pgsql-general
On 4/21/20 7:43 PM, Virendra Kumar wrote:
> Hi Adrian,
> 
> Here is test case, basically when autovacuum runs it did release the 
> space to disk since it had may be continuous blocks which can be 
> released to disk but the space used by index is still being held until I 
> ran the reindex on the table (I assume reindex for index would work as 
> well). Subsequent insert statement did not utilize the blocks in index 
> segment as we can see below so index bloats are still not addressed or 
> may be I am doing something wrong:
> 


Well I learned something. I replicated your commands on my 12 instance 
and got the exact same results. I should have read this:

https://www.postgresql.org/docs/12/routine-reindex.html

before.


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Kevin Brannen
Date:
Subject: RE: how to slow down parts of Pg
Next
From: brajmohan saxena
Date:
Subject: PG based ETL tools