Andrew Dunstan <[EMAIL PROTECTED]> writes:
> Tom Lane wrote:
>> Andrew Dunstan <[EMAIL PROTECTED]> writes:
>>> Yeah, quite possibly. I'm also wondering if we are wasting effort 
>>> downcasing what will in most cases be the same pattern over and over 
>>> again. Maybe we need to look at memoizing that somehow, or at least test 
>>> to see if that would be a gain.
>> 
>> Someone (Itagaki-san IIRC) suggested that we ought to convert
>> "x ILIKE y" into "lower(x) LIKE lower(y)" at some fairly early
>> stage, definitely before constant-folding in the planner.
>> 
> Sounds like a TODO item. I'm already concerned a bit about scope creep 
> for this item.

Agreed, I don't want to tackle this right now --- I'm just suggesting
it's probably a better answer than memoizing at runtime.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to