Re: Index size increases after VACUUM FULL

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

On Tue, Sep 30, 2008 at 4:49 PM, Heikki Linnakangas <
heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:

> Gurjeet Singh wrote:
>
>> On Tue, Sep 30, 2008 at 3:09 PM, Heikki Linnakangas <
>> heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
>>
>>> 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.
>>>
>>
>>
>> That explains it... and yes, REINDEX did bring the index size back to
>> normal.
>>
>> Would it make sense to mention this in docs of VACUUM FULL? Either at
>>
>> http://www.postgresql.org/docs/8.3/static/routine-vacuuming.html
>>
>> or at
>>
>> http://www.postgresql.org/docs/8.3/static/sql-vacuum.html
>>
>
> Yeah, maybe. Want to suggest a wording?

VACUUM FULL may cause a noticeable increase in size of the indexes of the
tables that are vacuumed; this is because the VACUUM operation makes new
entries in the index for the tuples/rows that have just been moved.

OR

VACUUM FULL may cause a noticeable increase in size of the indexes, that are
on the tables being vacuumed; this is because the VACUUM operation makes
new entries in the index for the tuples/rows that have just been moved.

Followed By:

An appropriate REINDEX command (REINDEX database|table|index ) can reduce
the size of such indexes.

I think it makes sense to put this on both the above mentioned URLs.

Best regards,
--
gurjeet[(dot)singh](at)EnterpriseDB(dot)com
singh(dot)gurjeet(at){ gmail | hotmail | indiatimes | yahoo }.com

EnterpriseDB http://www.enterprisedb.com

Mail sent from my BlackLaptop device

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gurjeet Singh 2008-09-30 12:18:19 Re: FSM rewrite committed, loose ends
Previous Message Heikki Linnakangas 2008-09-30 11:19:29 Re: Index size increases after VACUUM FULL