Обсуждение: Index relation size

Поиск
Список
Период
Сортировка

Index relation size

От
"Rigmor Ukuhe"
Дата:
Hi,

I have table with size ~35 MB, it has several indexes and couple of them are
well over 500 MB in size (they are indexes with 3-4 columns involved, with
datatypes like varchar, int4 , timestamp, boolean).
Database is VACUUMed nightly, version is 7.2.4 (cant upgrade to newest
version at the moment). Are these
index sizes indicating some problems with our Postgres server?

Rigmor Ukuhe
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.779 / Virus Database: 526 - Release Date: 19.10.2004


Re: Index relation size

От
Gaetano Mendola
Дата:
Rigmor Ukuhe wrote:> Hi,>> I have table with size ~35 MB, it has several indexes and couple of them are> well over 500
MBin size (they are indexes with 3-4 columns involved, with> datatypes like varchar, int4 , timestamp, boolean).>
Databaseis VACUUMed nightly, version is 7.2.4 (cant upgrade to newest> version at the moment). Are these> index sizes
indicatingsome problems with our Postgres server? 

If you do not vacuum full, this is normal.
Using a version > 7.4 then a normal vacuum "shall" be enough.


Regards
Gaetano Mendola




Re: Index relation size

От
"Scott Marlowe"
Дата:
On Mon, 2004-10-25 at 05:02, Rigmor Ukuhe wrote:
> Hi,
>
> I have table with size ~35 MB, it has several indexes and couple of them are
> well over 500 MB in size (they are indexes with 3-4 columns involved, with
> datatypes like varchar, int4 , timestamp, boolean).
> Database is VACUUMed nightly, version is 7.2.4 (cant upgrade to newest
> version at the moment). Are these
> index sizes indicating some problems with our Postgres server?

Assuming you aren't suffering from index bloat, which was a problem in
7.2, this may be normal.  To see if you are, try "reindex indexname" and
see if the index shrinks.

Multicolumn indexes being bigger than their table because of the way
they're put together, so it's likely that when you get done reindexing
the index will still be bigger than the table.