Re: ANY - Mailing list pgsql-general

From Tom Lane
Subject Re: ANY
Date
Msg-id 390.1189104933@sss.pgh.pa.us
Whole thread Raw
In response to Re: ANY  (Alban Hertroys <alban@magproductions.nl>)
Responses Re: ANY  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
Alban Hertroys <alban@magproductions.nl> writes:
> Richard Huxton wrote:
>> AFAIK there are two variants of ANY()
>> 1. sets
>> 2. arrays
>>
>> So you should be able to do:
>> ... WHERE x = ANY( ARRAY[a, b, c] )

> But then the documentation isn't entirely correct. It suggests that it
> works similar to IN, but it doesn't.

The subquery variants (section 9.19) do work the same.  There is nothing
on the other page (9.20) making such a comparison.

            regards, tom lane

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Need suggestion on how best to update 3 million rows
Next
From: Tom Lane
Date:
Subject: Re: a provocative question?