CREATE TABLE cases ( id serial PRIMARY KEY,
Works fine, but when I pg_dump the database, what shows up in the dump is:
CREATE TABLE cases ( id serial NOT NULL,
The documentation seems to say that 'serial NOT NULL' is not at all the same as 'serial PRIMARY KEY':
( http://www.postgresql.org/docs/8.0/static/datatype.html#DATATYPE-SERIAL )
"Note: Prior to PostgreSQL 7.3, serial implied UNIQUE. This is no longer automatic. If you wish a serial column to be in a unique constraint or a primary key, it must now be specified, same as with any other data type."
Any help appreciated, Michael Hipp
---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your message can get through to the mailing list cleanly