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

From: "Jens Schicke" <j(dot)schicke(at)asco(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints
Date: 2007-08-16 10:39:44
Message-ID: 200708161039.l7GAdibQ079753@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 3542
Logged by: Jens Schicke
Email address: j(dot)schicke(at)asco(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jens Schicke 2007-08-16 11:11:49 BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows
Previous Message Tom Lane 2007-08-16 06:09:31 Re: BUG #3539: tsearch2 broken on Intel Macs running Leopard