Re: IN or ANY for batch queries - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: IN or ANY for batch queries
Date
Msg-id 72385.1531057323@sss.pgh.pa.us
Whole thread Raw
In response to Re: IN or ANY for batch queries  (Alessandro Gherardi <alessandro.gherardi@yahoo.com>)
List pgsql-jdbc
Alessandro Gherardi <alessandro.gherardi@yahoo.com> writes:
> I'm trying to figure out to which class I should add this enhancement. Ideally, it should be the class associated
withthe earliest release of postgres that supports this functionality. I tried to find out in which release WHERE ... =
ANY(?)was first implemented but have had no luck. 

Digging in the git history says it was 7.4:

Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master Release: REL7_4_BR [bee217924] 2003-06-29 00:33:44 +0000

    Support expressions of the form 'scalar op ANY (array)' and
    'scalar op ALL (array)', where the operator is applied between the
    lefthand scalar and each element of the array.  The operator must
    yield boolean; the result of the construct is the OR or AND of the
    per-element results, respectively.

    Original coding by Joe Conway, after an idea of Peter's.  Rewritten
    by Tom to keep the implementation strictly separate from subqueries.

            regards, tom lane


pgsql-jdbc by date:

Previous
From: Alessandro Gherardi
Date:
Subject: Re: IN or ANY for batch queries
Next
From: Vladimir Sitnikov
Date:
Subject: [pgjdbc/pgjdbc] da831d: perf: avoid string allocation for oid/rowsparsing...