Re: GIN Index for low cardinality - Mailing list pgsql-general

From Jeff Janes
Subject Re: GIN Index for low cardinality
Date
Msg-id CAMkU=1xEFJnhZJxtNHTOBknwrHFFfqGvGSEd=Dp2uW8nOhQenA@mail.gmail.com
Whole thread Raw
In response to Re: GIN Index for low cardinality  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-general
On Fri, Oct 26, 2018 at 12:27 PM Jeff Janes <jeff.janes@gmail.com> wrote:

Here is a real-world example from one of my databases where each value is about 17 characters long, and is present about 20 times:

gin: 411 MB
btree: 2167 MB
hash: 2159 MB

For what it is worth, that was 9.6 with freshly rebuilt indexes.

On 11.0 with freshly rebuilt indices, the hash index does get a bit smaller:

gin: 411 MB
btree: 2167 MB
hash: 1864 MB

Cheers,

Jeff

pgsql-general by date:

Previous
From: Christoph Moench-Tegeder
Date:
Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function
Next
From: Yuxia Qiu
Date:
Subject: Question about partition table