Re: relpages of btree indexes are not truncating even after deletingall the tuples from table and doing vacuum - Mailing list pgsql-hackers

From Mahendra Singh
Subject Re: relpages of btree indexes are not truncating even after deletingall the tuples from table and doing vacuum
Date
Msg-id CAKYtNArA8kEfsHKhkogk026rbewAL7RtKuF8VSdXWUm+QY5zmw@mail.gmail.com
Whole thread Raw
In response to Re: relpages of btree indexes are not truncating even after deletingall the tuples from table and doing vacuum  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
On Tue, 24 Dec 2019 at 02:41, Peter Geoghegan <pg@bowt.ie> wrote:
>
> On Mon, Dec 23, 2019 at 11:05 AM Mahendra Singh <mahi6run@gmail.com> wrote:
> > From above example, we can see that after deleting all the tuples from table and firing vacuum command, size of
tableis reduced but size of index relation is same as before vacuum.
 
>
> VACUUM is only able to make existing empty pages in indexes recyclable
> by future page splits within the same index. It is not possible for it
> to reclaim space for the filesystem. Workload characteristics tend to
> determine whether or not this limitation is truly important.

Thank you for the clarification.

Thanks and Regards
Mahendra Singh Thalor
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: table partition and column default
Next
From: Alexander Korotkov
Date:
Subject: Re: Avoid full GIN index scan when possible