pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Strange Index sizes 2+ messages / 2 participants [nested] [flat]
* Strange Index sizes @ 2018-04-25 06:41 Mohsen Bande <mohsenbande@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Mohsen Bande @ 2018-04-25 06:41 UTC (permalink / raw) To: pgsql-general@lists.postgresql.org 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Strange Index sizes @ 2018-04-25 14:38 Adrian Klaver <adrian.klaver@aklaver.com> parent: Mohsen Bande <mohsenbande@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Adrian Klaver @ 2018-04-25 14:38 UTC (permalink / raw) To: Mohsen Bande <mohsenbande@gmail.com>; pgsql-general@lists.postgresql.org On 04/24/2018 11:41 PM, Mohsen Bande wrote: > Hi all, > I have a user table with ~8M records, with different type of fields > b-tree indexed. Could we see table schema and index statements? > by investigating index sizes, i found two strange things: > 1- all index sizes are almost the same, regardless of field type > (boolean, string, bigint) What was the command you used to determine the sizes? > 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 -- Adrian Klaver adrian.klaver@aklaver.com ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-04-25 14:38 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-04-25 06:41 Strange Index sizes Mohsen Bande <mohsenbande@gmail.com> 2018-04-25 14:38 ` Adrian Klaver <adrian.klaver@aklaver.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox