Doc: trivial wording adjustment.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 May 2021 13:59:11 +0000 (09:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 May 2021 13:59:11 +0000 (09:59 -0400)
Improve self-referential foreign key example, per suggestion
from David Johnston.

Discussion: https://postgr.es/m/CAKFQuwZTke7+HUn4YUGqu2+gAPi4Cy18TXMrg_Z5nADkxfPNMw@mail.gmail.com

doc/src/sgml/ddl.sgml

index 513112a216d96b6a293f712b453b3f94bf411858..b4648321dc4c29cdae4edd01e42b26b0954cdfa1 100644 (file)
@@ -956,7 +956,7 @@ CREATE TABLE tree (
 );
 </programlisting>
     A top-level node would have NULL <structfield>parent_id</structfield>,
-    but non-NULL <structfield>parent_id</structfield> entries would be
+    while non-NULL <structfield>parent_id</structfield> entries would be
     constrained to reference valid rows of the table.
    </para>