doc: Update serial explanation
authorPeter Eisentraut
Mon, 8 Apr 2019 20:03:48 +0000 (22:03 +0200)
committerPeter Eisentraut
Mon, 8 Apr 2019 20:03:48 +0000 (22:03 +0200)
The CREATE SEQUENCE command should include a data type specification,
since PostgreSQL 10.

Reported-by: [email protected]
doc/src/sgml/datatype.sgml

index cced57b2a839dd6713fe896f70058bb5ea4cea3d..13b988077a55da0e30bf383304a6a63fc5618d8f 100644 (file)
@@ -880,7 +880,7 @@ CREATE TABLE tablename (
      is equivalent to specifying:
 
 
-CREATE SEQUENCE tablename_colname_seq;
+CREATE SEQUENCE tablename_colname_seq AS integer;
 CREATE TABLE tablename (
     colname integer NOT NULL DEFAULT nextval('tablename_colname_seq')
 );