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: 2008-12-30 09:05:59
Message-ID: 4959E477.9050700@shopzeus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Guillaume Lelarge 2008-12-30 09:21:11 Re: Big index sizes
Previous Message Tom Lane 2008-12-29 15:26:33 Re: rebellious pg stats collector (reopened case)