Re: index usage on arrays - Mailing list pgsql-performance

From Tom Lane
Subject Re: index usage on arrays
Date
Msg-id 8143.1202410918@sss.pgh.pa.us
Whole thread Raw
In response to index usage on arrays  (andrew klassen <aptklassen@yahoo.com>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: index usage on arrays
Next
From: "Yonatan Ben-Nes"
Date:
Subject: Wrong number of rows estimation by the planner