]> granicus.if.org Git - postgresql/commitdiff
doc: Mention identity column feature in section on serial
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 22 Aug 2017 23:55:21 +0000 (19:55 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 22 Aug 2017 23:56:16 +0000 (19:56 -0400)
Reported-by: Basil Bourque <basil.bourque@pobox.com>
doc/src/sgml/datatype.sgml

index 5f881a0b74bac88a3beb27363e892fab1b2e96b0..512756df4afccbbb4a26c2593aefd9bf635751b1 100644 (file)
@@ -837,6 +837,14 @@ FROM generate_series(-3.5, 3.5, 1) as x;
      <secondary>and serial type</secondary>
     </indexterm>
 
+    <note>
+     <para>
+      This section describes a PostgreSQL-specific way to create an
+      autoincrementing column.  Another way is to use the SQL-standard
+      identity column feature, described at <xref linkend="sql-createtable">.
+     </para>
+    </note>
+
     <para>
      The data types <type>smallserial</type>, <type>serial</type> and
      <type>bigserial</type> are not true types, but merely