From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix ALTER TABLE ADD COLUMN ... |
Date: | 2008-04-24 20:18:15 |
Message-ID: | 20080424201815.55C3A7559CD@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
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.
Tags:
----
REL8_1_STABLE
Modified Files:
--------------
pgsql/src/backend/commands:
tablecmds.c (r1.174.2.4 -> r1.174.2.5)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.174.2.4&r2=1.174.2.5)
pgsql/src/test/regress/expected:
alter_table.out (r1.89 -> r1.89.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/alter_table.out?r1=1.89&r2=1.89.2.1)
pgsql/src/test/regress/sql:
alter_table.sql (r1.52 -> r1.52.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/alter_table.sql?r1=1.52&r2=1.52.2.1)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-04-24 20:18:23 | pgsql: Fix ALTER TABLE ADD COLUMN ... |
Previous Message | Tom Lane | 2008-04-24 20:18:07 | pgsql: Fix ALTER TABLE ADD COLUMN ... |