From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alessandro Gherardi <alessandro.gherardi@yahoo.com>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: IN or ANY for batch queries
Date: Sun, 08 Jul 2018 09:42:03 -0400
Message-ID: <72385.1531057323@sss.pgh.pa.us> (raw)
In-Reply-To: <1813302550.684598.1531056519357@mail.yahoo.com>
References: <1326195889.5524206.1527300602365.ref@mail.yahoo.com>
<1326195889.5524206.1527300602365@mail.yahoo.com>
<CAB=Je-HGL1LbhfH=2y67Dq_ysex4cj=jvwb7K34+qQM+6ntceQ@mail.gmail.com>
<CAMsr+YGkW7DEeCdrat7Dw7AF08uay4QuMF58rwoJvmOLv3UK6w@mail.gmail.com>
<1813302550.684598.1531056519357@mail.yahoo.com>
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 with the 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, alessandro.gherardi@yahoo.com, sitnikov.vladimir@gmail.com, craig@2ndquadrant.com
Subject: Re: IN or ANY for batch queries
In-Reply-To: <72385.1531057323@sss.pgh.pa.us>
References: <1326195889.5524206.1527300602365.ref@mail.yahoo.com> <1326195889.5524206.1527300602365@mail.yahoo.com> <CAB=Je-HGL1LbhfH=2y67Dq_ysex4cj=jvwb7K34+qQM+6ntceQ@mail.gmail.com> <CAMsr+YGkW7DEeCdrat7Dw7AF08uay4QuMF58rwoJvmOLv3UK6w@mail.gmail.com> <1813302550.684598.1531056519357@mail.yahoo.com> <72385.1531057323@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox