ALTER TABLE ADD COLUMN column SERIAL -- unexpected results - Mailing list pgsql-hackers

From Rod Taylor
Subject ALTER TABLE ADD COLUMN column SERIAL -- unexpected results
Date
Msg-id 004601c10e17$1a5be030$2205010a@jester
Whole thread Raw
Responses Re: ALTER TABLE ADD COLUMN column SERIAL -- unexpected results
List pgsql-hackers
Running:
ALTER TABLE table ADD COLUMN column SERIAL;
Defines a column as int4 but does not create the sequence or attempt
to set the default value.

Not a big deal, but I was surprised when the column values were null.

--
Rod Taylor

Your eyes are weary from staring at the CRT. You feel sleepy. Notice
how restful it is to watch the cursor blink. Close your eyes. The
opinions stated above are yours. You cannot imagine why you ever felt
otherwise.


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: handling NULLS in GiST
Next
From: "Neil Conway"
Date:
Subject: Re: [GENERAL] 2 gig file size limit