Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avDY0-0007G0-CF for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Apr 2016 00:41:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avDXz-0002kH-7R for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Apr 2016 00:41:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avDXy-0002kB-Sg for pgsql-bugs@postgresql.org; Wed, 27 Apr 2016 00:41:42 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1avDXr-0004gn-3G for pgsql-bugs@postgresql.org; Wed, 27 Apr 2016 00:41:42 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1avDXp-0003DX-Lm; Tue, 26 Apr 2016 20:41:33 -0400 Date: Tue, 26 Apr 2016 20:41:33 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: Manlio Perillo , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14016: Incomplete documentation of IN subquery expression Message-ID: <20160427004133.GE13058@momjian.us> References: <20160311163928.6674.94707@wrigleys.postgresql.org> <20160426202737.GA13058@momjian.us> <20160427002010.GC13058@momjian.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="HG+GLK89HZ1zG0kk" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Apr 26, 2016 at 05:32:04PM -0700, David G. Johnston wrote: > I think the spot you linked to the first time was correct.  The subquery form > is the one you get when using values, the scalar version is the one the note > wants to link to. OK, updated patch attached. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + --HG+GLK89HZ1zG0kk Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="in.diff" diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml new file mode 100644 index eb2a0c5..b3bb0a7 *** a/doc/src/sgml/func.sgml --- b/doc/src/sgml/func.sgml *************** WHERE EXISTS (SELECT 1 FROM tab2 WHERE c *** 14590,14596 **** Boolean (true/false) results. ! <literal>IN</literal> --- 14590,14596 ---- Boolean (true/false) results. ! <literal>IN</literal> diff --git a/doc/src/sgml/ref/values.sgml b/doc/src/sgml/ref/values.sgml new file mode 100644 index 0fb3cd7..9b0d8fa *** a/doc/src/sgml/ref/values.sgml --- b/doc/src/sgml/ref/values.sgml *************** WHERE ip_address IN (VALUES('192.168.0.1 *** 219,225 **** 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. The list of scalars method requires less writing and is often more efficient. --- 219,226 ---- 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. The list of scalars method requires less writing and is often more efficient. --HG+GLK89HZ1zG0kk Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --HG+GLK89HZ1zG0kk--