Fix ALTER TABLE ADD COLUMN ... PRIMARY KEY so that the new column is correctly
checked to see if it's been initialized to all non-nulls. The implicit NOT
NULL constraint was not being checked during the ALTER (in fact, not even if
there was an explicit NOT NULL too), because ATExecAddColumn neglected to
set the flag needed to make the test happen. This has been broken since
the capability was first added, in 8.0.
Brendan Jurd, per a report from Kaloyan Iliev.
tablecmds.c (r1.250 -> r1.251)
alter_table.out (r1.104 -> r1.105)
alter_table.sql (r1.56 -> r1.57)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2008-04-24 20:17:59|
|Subject: pgsql: Fix ALTER TABLE ADD COLUMN ...|
|Previous:||From: Bruce Momjian||Date: 2008-04-24 19:58:32|
|Subject: pgsql: Add embedded usage mention to FAQ, per Greg Smith.|