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

Big index sizes


  • From: Laszlo Nagy <gandalf(at)shopzeus(dot)com>
  • To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
  • Subject: Big index sizes
  • Date: Tue, 30 Dec 2008 10:05:59 +0100
  • Message-id: <4959E477.9050700@shopzeus.com> <text/plain>

We have serveral table where the index size is much bigger than the table size.

Example:

select count(*) from product_price -- 2234244

Table size: 400 MB
Index size: 600 MB

After executing "reindex table product_price", index size reduced to 269MB.

I believe this affects performance.

Vacuuming a table does not rebuild the indexes, am I right? I'm not sure if I need to do this manually, or is this the result of another problem? (For example, too many open transactions, frequent updates?)


Thanks




Home | Main Index | Thread Index

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