Re: prefix btree implementation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: prefix btree implementation
Date
Msg-id 16792.1128605918@sss.pgh.pa.us
Whole thread Raw
In response to Re: prefix btree implementation  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: prefix btree implementation
List pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> It might be worth teaching the optimiser that if it has an index on an
> immutable function that if we have WHERE x = k and a functional index on
> f(x) then we can access the functional index with 
> f(x) = f(k), as long as we also reapply the original WHERE clause. 

As I just pointed out to Gaetano, this is utterly wrong.  We can't
assume that much about the behavior of equality.
        regards, tom lane


pgsql-hackers by date:

Previous
From: MOCHERLA LAKSHMI NARASIMHAM
Date:
Subject: resource monitor
Next
From: Alvaro Herrera
Date:
Subject: Re: fixing LISTEN/NOTIFY