Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Big index sizes


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
  • Cc: Laszlo Nagy <gandalf(at)shopzeus(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
  • Subject: Re: Big index sizes
  • Date: Tue, 30 Dec 2008 10:39:21 -0500
  • Message-id: <15381.1230651561@sss.pgh.pa.us> <text/plain>

Guillaume Lelarge <guillaume(at)lelarge(dot)info> writes:
> Laszlo Nagy a écrit :
>> We have serveral table where the index size is much bigger than the
>> table size.
>> ...
>> Vacuuming a table does not rebuild the indexes, am I right?

> Neither VACUUM nor VACUUM FULL rebuild the indexes. CLUSTER and REINDEX do.

In fact, VACUUM FULL tends to make indexes *more* bloated not less so.
One fairly likely explanation for how you got into this situation is
overeager use of VACUUM FULL.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group