From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mohsen Bande <mohsenbande@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Strange Index sizes
Date: Wed, 25 Apr 2018 07:38:06 -0700
Message-ID: <de819c3c-5897-72df-7f17-bd415b0a4bfa@aklaver.com> (raw)
In-Reply-To: <CAFdu22p13G7mB5B=XDVW1+xseAKP8jTRNr=zgD+r7r6NGYQgvQ@mail.gmail.com>
References: <CAFdu22p13G7mB5B=XDVW1+xseAKP8jTRNr=zgD+r7r6NGYQgvQ@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, mohsenbande@gmail.com
Subject: Re: Strange Index sizes
In-Reply-To: <de819c3c-5897-72df-7f17-bd415b0a4bfa@aklaver.com>
References: <CAFdu22p13G7mB5B=XDVW1+xseAKP8jTRNr=zgD+r7r6NGYQgvQ@mail.gmail.com> <de819c3c-5897-72df-7f17-bd415b0a4bfa@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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