From: Tom Lane <tgl@sss.pgh.pa.us>
To: Eric Brison <eric.brison@anakeen.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Extension intarray and null values
Date: Thu, 25 Feb 2021 11:29:43 -0500
Message-ID: <15456.1614270583@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+GXEX__gqOYkxTbZDRWSQfsbHSWF4nwoGu0FzFXNWY+Mba5SA@mail.gmail.com>
References: <CA+GXEX_BoViVZ4Jho0vf47DoNT9rPBpoy+93X1GYJYK3eYD+rg@mail.gmail.com>
<108775.1614265614@sss.pgh.pa.us>
<CA+GXEX__gqOYkxTbZDRWSQfsbHSWF4nwoGu0FzFXNWY+Mba5SA@mail.gmail.com>
Eric Brison <eric.brison@anakeen.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
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: tgl@sss.pgh.pa.us, eric.brison@anakeen.com
Subject: Re: Extension intarray and null values
In-Reply-To: <15456.1614270583@sss.pgh.pa.us>
References: <CA+GXEX_BoViVZ4Jho0vf47DoNT9rPBpoy+93X1GYJYK3eYD+rg@mail.gmail.com> <108775.1614265614@sss.pgh.pa.us> <CA+GXEX__gqOYkxTbZDRWSQfsbHSWF4nwoGu0FzFXNWY+Mba5SA@mail.gmail.com> <15456.1614270583@sss.pgh.pa.us>
* 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