]> granicus.if.org Git - postgresql/commitdiff
doc: add link for list-of-scalars mention
authorBruce Momjian <bruce@momjian.us>
Tue, 28 Jun 2016 20:16:06 +0000 (16:16 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 28 Jun 2016 20:16:06 +0000 (16:16 -0400)
Reported-by: Manlio Perillo
Bug: 14016

Discussion: 20160311163928.6674.94707@wrigleys.postgresql.org

Reviewed-by: David G. Johnston
doc/src/sgml/func.sgml
doc/src/sgml/ref/values.sgml

index 052b8f5ba05760d2651d6ad2ee698c49d8fd20c8..baef80db5bd748bf527e0fa21fdbae8318490fb9 100644 (file)
@@ -14609,7 +14609,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
    Boolean (true/false) results.
   </para>
 
-  <sect2>
+  <sect2 id="functions-comparisons-in-scalar">
    <title><literal>IN</literal></title>
 
 <synopsis>
index 0fb3cd7bc2da592acc1d9ebacdf207ccd2250d86..9b0d8fa4a168af2f041241daa7c022ff1b103193 100644 (file)
@@ -219,7 +219,8 @@ WHERE ip_address IN (VALUES('192.168.0.1'::inet), ('192.168.0.10'), ('192.168.1.
   <tip>
    <para>
     For simple <literal>IN</> tests, it's better to rely on the
-    list-of-scalars form of <literal>IN</> than to write a <command>VALUES</>
+    <link linkend="functions-comparisons-in-scalar">list-of-scalars</link>
+    form of <literal>IN</> than to write a <command>VALUES</>
     query as shown above.  The list of scalars method requires less writing
     and is often more efficient.
    </para>