Re: Regular expressions and arrays and ANY() question - Mailing list pgsql-general

From Tom Lane
Subject Re: Regular expressions and arrays and ANY() question
Date
Msg-id 18187.1169562649@sss.pgh.pa.us
Whole thread Raw
In response to Re: Regular expressions and arrays and ANY() question  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Regular expressions and arrays and ANY() question  (David Fetter <david@fetter.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> If you created such a function, and made an operator with it that was a
> communtator of LIKE (call it "is liked by"), would the planner be smart
> enough to split the ANY and commutate it to the normal order?

No, at least not as of 8.2, because ANY translates as a ScalarArrayOpExpr
which only comes in the one flavor (array on the right).

            regards, tom lane

pgsql-general by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: too many trigger records found for relation "item" -
Next
From: Tom Lane
Date:
Subject: Re: too many trigger records found for relation "item" -