Re: Regular expressions and arrays and ANY() question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: webb(dot)sprague(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Regular expressions and arrays and ANY() question
Date: 2007-01-23 14:30:49
Message-ID: 18187.1169562649@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-01-23 14:43:48 Re: too many trigger records found for relation "item" -
Previous Message Csaba Nagy 2007-01-23 14:19:21 Re: too many trigger records found for relation "item" -