aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-07-17 15:17:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-07-17 15:17:52 -0400
commit6159331acfbe2d08361947324e09e446138c7bc1 (patch)
tree915a2febc3db27ad5257fe01752fc369d6d9c0a2 /doc/src
parenta99cc6c6b4bf083d72fb1e8adfb665a449b7a37f (diff)
downloadpostgresql-6159331acfbe2d08361947324e09e446138c7bc1.tar.gz
postgresql-6159331acfbe2d08361947324e09e446138c7bc1.zip
Doc: fix minor syntax error in example.
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ddl.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index c5e11a6699f..626d35514cc 100644
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -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>