pgsql: Fix ALTER TABLE to check pre-existing NOT NULL constraints when

Lists: pgsql-committers
From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix ALTER TABLE to check pre-existing NOT NULL constraints when
Date: 2006-07-10 22:10:39
Message-ID: 20060710221039.416989FB2D0@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Log Message:
-----------
Fix ALTER TABLE to check pre-existing NOT NULL constraints when rewriting
a table. Otherwise a USING clause that yields NULL can leave the table
violating its constraint (possibly there are other cases too). Per report
from Alexander Pravking.

Modified Files:
--------------
pgsql/src/backend/commands:
tablecmds.c (r1.192 -> r1.193)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c.diff?r1=1.192&r2=1.193)