[PERFORM] Big index sizes

2008-12-30 Thread Laszlo Nagy
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.

Re: [PERFORM] Big index sizes

2008-12-30 Thread Guillaume Lelarge
Laszlo Nagy a écrit : 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

Re: [PERFORM] Big index sizes

2008-12-30 Thread Robert Haas
On Tue, Dec 30, 2008 at 4:05 AM, Laszlo Nagy gand...@shopzeus.com wrote: We have serveral table where the index size is much bigger than the table size. You'll usually get index bloat in roughly the same measure that you get table bloat. If you always (auto)vacuum regularly, then the amount of

Re: [PERFORM] Big index sizes

2008-12-30 Thread Tom Lane
Guillaume Lelarge guilla...@lelarge.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.