Re: operator does not exist: smallint <> smallint[] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: operator does not exist: smallint <> smallint[]
Date
Msg-id 15229.1228836372@sss.pgh.pa.us
Whole thread Raw
In response to Re: operator does not exist: smallint <> smallint[]  (Euler Taveira de Oliveira <euler@timbira.com>)
List pgsql-hackers
Euler Taveira de Oliveira <euler@timbira.com> writes:
> Tom Lane escreveu:
>> It's entirely right: there's no such operator.
>> 
> Out of curiosity, why the other queries work?

The behavior is different depending on whether the argument of ANY/ALL
is a sub-SELECT or not.  If it is, then the comparisons are between the
LHS and the successive values produced by the sub-SELECT.  If it isn't,
then the RHS has to produce an array and the comparisons are to the
array elements.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: contrib/pg_stat_statements 1202
Next
From: "Pavel Stehule"
Date:
Subject: Re: WIP: default values for function parameters