Re: [PERFORM] limitation using LIKE on ANY(array)

2006-03-24 Thread K C Lau
Thank you very much, Tom. We'll try it and report if there is any significant impact performance-wise. Best regards, KC. At 00:25 06/03/25, Tom Lane wrote: K C Lau <[EMAIL PROTECTED]> writes: > Indeed, I get rejected even with: > .. WHERE ANY(array) = 'xx' > It would only work as documented i

Re: [PERFORM] limitation using LIKE on ANY(array)

2006-03-24 Thread Tom Lane
K C Lau <[EMAIL PROTECTED]> writes: > Indeed, I get rejected even with: > .. WHERE ANY(array) = 'xx' > It would only work as documented in the manual (8.10.5): > SELECT * FROM sal_emp WHERE 1 = ANY (pay_by_quarter); That's not changing any time soon; the SQL spec defines only the second synta

[PERFORM] limitation using LIKE on ANY(array)

2006-03-24 Thread K C Lau
With 8.1.3, I get an error when trying to do this on a Text[] column : .. WHERE ANY(array) LIKE 'xx%' Indeed, I get rejected even with: .. WHERE ANY(array) = 'xx' In both cases, the error is: ERROR:  syntax error at or near "any" ... It would only work as documented in the manual (8.10.5): S