Re: [PATCH] Add support function for containment operators - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: [PATCH] Add support function for containment operators
Date
Msg-id 147ac793f2c3a9a57764fba84988a4b5e843443b.camel@cybertec.at
Whole thread Raw
In response to Re: [PATCH] Add support function for containment operators  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: [PATCH] Add support function for containment operators
List pgsql-hackers
I wrote:
> You implement both "SupportRequestIndexCondition" and "SupportRequestSimplify",
> but when I experimented, the former was never called.  That does not
> surprise me, since any expression of the shape "expr <@ range constant"
> can be simplified.  Is the "SupportRequestIndexCondition" branch dead code?
> If not, do you have an example that triggers it?

I had an idea about this:
So far, you only consider constant ranges.  But if we have a STABLE range
expression, you could use an index scan for "expr <@ range", for example
Index Cond (expr >= lower(range) AND expr < upper(range)).

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Disabling Heap-Only Tuples
Next
From: Thom Brown
Date:
Subject: Re: Disabling Heap-Only Tuples