Re: arrays and indexes

From: Pierre-Frédéric Caillaud <lists(at)boutiquenumerique(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: arrays and indexes
Date: 2004-07-26 20:35:01
Message-ID: opsbrh4nu4cq72hf@musicbox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


>> > SELECT * from content where 42 = ANY (authors);

>> Postgres does have a way to do what you ask, though. It involves GiST
>> indexes and the operators from the contrib/intarray directory from the
>> Postgres source.

I have tried to use these indexes, and the performance was very good. It
can be faster (in fact much faster) than a join with an additional table,
because you don't have a join. The SQL array syntax is a pain, though.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Stark 2004-07-26 20:40:32 Re: arrays and indexes
Previous Message Ross J. Reedstrom 2004-07-26 18:47:03 Re: arrays and indexes