pgsql: Fix ALTER TABLE ADD COLUMN ...

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix ALTER TABLE ADD COLUMN ...
Дата
Msg-id 20080424201823.6356A7559CD@cvs.postgresql.org
обсуждение исходный текст
Список 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_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/commands:
        tablecmds.c (r1.142.4.7 -> r1.142.4.8)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.142.4.7&r2=1.142.4.8)
    pgsql/src/test/regress/expected:
        alter_table.out (r1.85.4.1 -> r1.85.4.2)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/alter_table.out?r1=1.85.4.1&r2=1.85.4.2)
    pgsql/src/test/regress/sql:
        alter_table.sql (r1.47.4.1 -> r1.47.4.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/alter_table.sql?r1=1.47.4.1&r2=1.47.4.2)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix ALTER TABLE ADD COLUMN ...
Следующее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Update: < * Allow adding enumerated values to an existing