From: Tom Lane <tgl@sss.pgh.pa.us>
To: andrew klassen <aptklassen@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: index usage on arrays
Date: Thu, 07 Feb 2008 14:01:58 -0500
Message-ID: <8143.1202410918@sss.pgh.pa.us> (raw)
In-Reply-To: <60380.61376.qm@web37305.mail.mud.yahoo.com>
References: <60380.61376.qm@web37305.mail.mud.yahoo.com>
andrew klassen <aptklassen@yahoo.com> writes:
> Is there any alternative to what am I currently doing other than creating a row for
> each array element,
Since (I think) 8.2, you could create a GIN index on the array column
and then array overlap (&&) would be indexable. GIN has some
performance issues if the table is heavily updated, though.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, aptklassen@yahoo.com
Subject: Re: index usage on arrays
In-Reply-To: <8143.1202410918@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