Doc: fix minor syntax error in example.
authorTom Lane <[email protected]>
Wed, 17 Jul 2024 19:17:52 +0000 (15:17 -0400)
committerTom Lane <[email protected]>
Wed, 17 Jul 2024 19:17:52 +0000 (15:17 -0400)
The CREATE TABLE option is GENERATED BY DEFAULT *AS* IDENTITY.

Per bug #18543 from Ondřej Navrátil.  Seems to have crept in
in a37bb7c13, so back-patch to v17 where that was added.

Discussion: https://postgr.es/m/18543-93c721689f9928e8@postgresql.org

doc/src/sgml/ddl.sgml

index c5e11a6699f37ee1505b0cae70eb6f5f91bf15c7..626d35514cc3959253b039d03f86275115515bcb 100644 (file)
@@ -257,7 +257,7 @@ CREATE TABLE people (
    or alternatively
 <programlisting>
 CREATE TABLE people (
-    id bigint <emphasis>GENERATED BY DEFAULT IDENTITY</emphasis>,
+    id bigint <emphasis>GENERATED BY DEFAULT AS IDENTITY</emphasis>,
     ...,
 );
 </programlisting>