Re: Extension intarray and null values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Eric Brison <eric(dot)brison(at)anakeen(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Extension intarray and null values
Date: 2021-02-25 16:29:43
Message-ID: 15456.1614270583@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Eric Brison <eric(dot)brison(at)anakeen(dot)com> writes:
> yes i a have a specific query with many rows and big int array These data
> not contains null values. And in this case , i use the specific GIN index.
> The query time decrease from 30s to 100ms with the index.

My point is that you can also make a gin index on an integer array
using the built-in array opclass. It might be a shade slower than
intarray, but maybe it's 120ms instead of 100, and it'll handle
nulls correctly.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-02-25 16:34:46 Re: Postgres Analog of Oracle APPEND hint
Previous Message Rumpi Gravenstein 2021-02-25 16:26:05 Re: Postgres Analog of Oracle APPEND hint