Strange Index sizes

From: Mohsen Bande <mohsenbande(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Strange Index sizes
Date: 2018-04-25 06:41:19
Message-ID: CAFdu22p13G7mB5B=XDVW1+xseAKP8jTRNr=zgD+r7r6NGYQgvQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
I have a user table with ~8M records, with different type of fields b-tree
indexed.
by investigating index sizes, i found two strange things:
1- all index sizes are almost the same, regardless of field type (boolean,
string, bigint)
2 - all of them are much bigger that my expectation, e.g. for a boolean
field, even after reindexing, the size is 217MB, so each record takes ~27
bytes.

could some one shed some light on this please? or refer any user oriented
documentation about index size estimations

Responses

Browse pgsql-general by date

  From Date Subject
Next Message a 2018-04-25 06:45:41 Questions on input function of TOAST enabled user defined types
Previous Message Ian Barwick 2018-04-25 05:20:28 Re: rh-postgresql96 vs community postgresql-9.6