ANY/SOME/ALL with noncommutable operators - Mailing list pgsql-hackers

From Peter Eisentraut
Subject ANY/SOME/ALL with noncommutable operators
Date
Msg-id 200806191131.04643.peter_e@gmx.net
Whole thread Raw
Responses Re: ANY/SOME/ALL with noncommutable operators  (David Fetter <david@fetter.org>)
Re: ANY/SOME/ALL with noncommutable operators  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I can do

'abc' LIKE ANY (ARRAY['a%','b%'])

but not

ANY (ARRAY['abc', 'def']) LIKE '%a'

This seems to be a failing in the SQL standard. You can work around this by 
creating your own operators, but maybe there should be a general solution, as 
there are a lot of noncommutable operators and this example doesn't seem all 
that unuseful in practice.

Comments?


pgsql-hackers by date:

Previous
From: Dmitry Turin
Date:
Subject: Re: Postgres + Window manager
Next
From: Vanessa Gonzalez
Date:
Subject: G8: SOS Cambio Climático