[HACKERS] Index size increases after VACUUM FULL

2008-09-30 Thread Gurjeet Singh
Hi All, 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.

Re: [HACKERS] Index size increases after VACUUM FULL

2008-09-30 Thread Heikki Linnakangas
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

Re: [HACKERS] Index size increases after VACUUM FULL

2008-09-30 Thread Gurjeet Singh
On Tue, Sep 30, 2008 at 3:09 PM, Heikki Linnakangas [EMAIL PROTECTED] wrote: 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);

Re: [HACKERS] Index size increases after VACUUM FULL

2008-09-30 Thread Heikki Linnakangas
Gurjeet Singh wrote: On Tue, Sep 30, 2008 at 3:09 PM, Heikki Linnakangas [EMAIL PROTECTED] 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...

Re: [HACKERS] Index size increases after VACUUM FULL

2008-09-30 Thread Gurjeet Singh
On Tue, Sep 30, 2008 at 4:49 PM, Heikki Linnakangas [EMAIL PROTECTED] wrote: Gurjeet Singh wrote: On Tue, Sep 30, 2008 at 3:09 PM, Heikki Linnakangas [EMAIL PROTECTED] wrote: That's normal. VACUUM FULL creates new index pointers for the tuples it moves, which can lead to a bigger index.

Re: [HACKERS] Index size increases after VACUUM FULL

2008-09-30 Thread Heikki Linnakangas
Gurjeet Singh wrote: On Tue, Sep 30, 2008 at 4:49 PM, Heikki Linnakangas [EMAIL PROTECTED] wrote: Gurjeet Singh wrote: On Tue, Sep 30, 2008 at 3:09 PM, Heikki Linnakangas [EMAIL PROTECTED] wrote: That's normal. VACUUM FULL creates new index pointers for the tuples it moves, which can