From: Pierre-Frédéric Caillaud <lists@boutiquenumerique.com>
To: pgsql-performance@postgresql.org
Subject: Re: arrays and indexes
Date: Mon, 26 Jul 2004 22:35:01 +0200
Message-ID: <opsbrh4nu4cq72hf@musicbox> (raw)
In-Reply-To: <20040726184703.GA27820@cnx.rice.edu>
References: <6EE64EF3AB31D5448D0007DD34EEB34101AEF1@Herge.rcsinc.local>
<20040726045710.GA14892@cnx.rice.edu>
<87acxnwaev.fsf@stark.xeocode.com>
<20040726184703.GA27820@cnx.rice.edu>
>> > 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.
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: lists@boutiquenumerique.com
Subject: Re: arrays and indexes
In-Reply-To: <opsbrh4nu4cq72hf@musicbox>
* 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