BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints

Поиск
Список
Период
Сортировка
От Jens Schicke
Тема BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints
Дата
Msg-id 200708161039.l7GAdibQ079753@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints
Re: BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      3542
Logged by:          Jens Schicke
Email address:      j.schicke@asco.de
PostgreSQL version: 8.2.4
Operating system:   GNU/Linux
Description:        Dropped and recreated columns have problems with NOT
NULL contraints
Details:

pizza_de=# alter table store_flags add column flag integer;
ALTER TABLE
pizza_de=# alter table store_flags drop column flag;
ALTER TABLE
pizza_de=# alter table store_flags add column flag integer not null;
ERROR:  column "flag" contains null values
pizza_de=# alter table store_flags drop column flag;
ERROR:  column "flag" of relation "store_flags" does not exist
pizza_de=# alter table store_flags add column flag integer not null;
ERROR:  column "flag" contains null values

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

Предыдущее
От: "Jens Schicke"
Дата:
Сообщение: BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints