]> granicus.if.org Git - postgresql/commitdiff
Clarify that NATURAL without matching columns is like CROSS JOIN.
authorRobert Haas <rhaas@postgresql.org>
Mon, 13 Jun 2011 16:59:04 +0000 (12:59 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 13 Jun 2011 17:00:09 +0000 (13:00 -0400)
As suggested by Grzegorz Szpetkowski.

doc/src/sgml/queries.sgml

index b3cf39a39b0a10bfe3fc2cba702d09be85306968..7ca640e6975e55a5feb37c972c85dae36030aca9 100644 (file)
@@ -266,7 +266,9 @@ FROM <replaceable>table_reference</replaceable> <optional>, <replaceable>table_r
         <literal>USING</>: it forms a <literal>USING</> list
         consisting of all column names that appear in both
         input tables.  As with <literal>USING</>, these columns appear
-        only once in the output table.
+        only once in the output table.  If there are no common
+        columns, <literal>NATURAL</literal> behaves like
+        <literal>CROSS JOIN</literal>.
        </para>
 
        <para>