From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | manlio(dot)perillo(at)gmail(dot)com |
Cc: | "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #14016: Incomplete documentation of IN subquery expression |
Date: | 2016-03-11 17:02:01 |
Message-ID: | CAKFQuwYR0xCbQS=fpv50Jqnsii=Y+B5sgkzzkY_PJG6M5fR1OQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Fri, Mar 11, 2016 at 9:39 AM, <manlio(dot)perillo(at)gmail(dot)com> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14016
> Logged by: Manlio Perillo
> Email address: manlio(dot)perillo(at)gmail(dot)com
> PostgreSQL version: 9.5.1
> Operating system: Linux
> Description:
>
> At the end of the documentation for VALUE (sql-values.html), there is the
> following tip:
> "For simple IN tests, it's better to rely on the list-of-scalars form of IN
> than to write a VALUES query as shown above"
>
> However there is no reference to the "list-of-scalars" forms of IN, in the
> functions-subquery.html page. It is only reported that the supported
> syntax
> is "expression IN (subquery)"
>
> The reference was available in an old version (7.3), where the manual
> documented both the scalar form and sub query form:
> "expression IN (value[, ...])"
>
It was moved...
http://www.postgresql.org/docs/9.5/interactive/functions-comparisons.html#AEN20283
The interpretation being that a "list of scalars" is, in this situation,
semantically equivalent to an array - though having the later you would
have to use "=ANY(array)" instead of "IN"
Apparently someone disagreed with the note in the subquery section:
>>>Note: This form of IN is not truly a subquery expression, but it seems
best to document it in the same place as subquery IN.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Léonard Benedetti | 2016-03-11 17:14:58 | Re: BUG #13440: unaccent does not remove all diacritics |
Previous Message | manlio.perillo | 2016-03-11 16:39:28 | BUG #14016: Incomplete documentation of IN subquery expression |