Re: Pushing ScalarArrayOpExpr support into the btree index AM - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Pushing ScalarArrayOpExpr support into the btree index AM
Date
Msg-id CA+TgmoavQ6_ySaAmEaDnc-Bv5qj4eTmPvCz5QsNp6jT0c4fNuA@mail.gmail.com
Whole thread Raw
In response to Pushing ScalarArrayOpExpr support into the btree index AM  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Oct 15, 2011 at 2:58 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> In principle somebody could be doing something like
>        WHERE pointcol <@ ANY (ARRAY[list of box values])
> and expecting that to generate a bitmap indexscan on a GIST index, but
> is it likely that anyone is doing that?  (As opposed to the equivalent
> formulation with "pointcol <@ box1 OR pointcol <@ box2 ...", which would
> still work to generate OR'd bitmap scans even if we took out the
> ScalarArrayOpExpr logic.)

That seems like a pretty natural formulation to me, so I would be
rather reluctant to assume nobody's doing it.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: index-only scans
Next
From: Jeff Janes
Date:
Subject: Re: index-only scans