doc: add link for list-of-scalars mention

Reported-by: Manlio Perillo

Bug: 14016

Discussion: 20160311163928.6674.94707@wrigleys.postgresql.org

Reviewed-by: David G. Johnston
This commit is contained in:
Bruce Momjian 2016-06-28 16:16:06 -04:00
parent 46eafc8855
commit 8a395e0b9a
2 changed files with 3 additions and 2 deletions

View 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>

View 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>