Re: arrays and indexes - Mailing list pgsql-performance

From Pierre-Frédéric Caillaud
Subject Re: arrays and indexes
Date
Msg-id opsbrh4nu4cq72hf@musicbox
Whole thread Raw
In response to Re: arrays and indexes  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
List 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.

pgsql-performance by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: arrays and indexes
Next
From: Greg Stark
Date:
Subject: Re: arrays and indexes