Re: Index size increases after VACUUM FULL

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Index size increases after VACUUM FULL
Date: 2008-09-30 09:39:35
Message-ID: 48E1F3D7.9050700@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gurjeet Singh wrote:
> I noticed something strange today, and thought I should report it. I
> vacuumed a database, and as expected, one of the table's size decreased
> (other table were VACUUMed individually earlier); but o my astonishment, the
> size of the UNIQUE KEY index on one of the columns increased.

That's normal. VACUUM FULL creates new index pointers for the tuples it
moves, which can lead to a bigger index. If it bothers, REINDEX will
pack the indexes tighter again.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gurjeet Singh 2008-09-30 10:31:50 Re: Index size increases after VACUUM FULL
Previous Message Gurjeet Singh 2008-09-30 08:43:23 Index size increases after VACUUM FULL