Re: is somewhere documented x LIKE ANY(ARRAY)?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2020-03-23T14:38:23Z
Lists: pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes: > po 23. 3. 2020 v 13:54 odesílatel Dagfinn Ilmari Mannsåker < > ilmari@ilmari.org> napsal: >> It's documented in >> https://www.postgresql.org/docs/current/functions-comparisons.html, and >> has been around since at least 7.4. Well, to be fair, we don't really say anywhere that LIKE acts enough like a plain operator to be used in this syntax. And the underlying code is the subquery_Op production in gram.y, which is specific to this syntax, so I'm not sure offhand to what extent LIKE acts like an operator for other corner cases. > My customer reports some issues on Postgres 9.3. Doesn't look to me like subquery_Op has changed much since 2004, so you'd really need to be more specific. regards, tom lane
Commits
-
Doc: explain that LIKE et al can be used in ANY (sub-select) etc.
- ef7f01a50489 9.6.18 landed
- 2af8894c409d 9.5.22 landed
- fe604800681a 13.0 landed
- a7500cce1ef2 10.13 landed
- 64232dab8a07 12.3 landed
- 25bf317ccd5a 11.8 landed