OSDN Git Service

Fix ALTER TABLE to check pre-existing NOT NULL constraints when rewriting
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Jul 2006 22:10:39 +0000 (22:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Jul 2006 22:10:39 +0000 (22:10 +0000)
commitcb33de773dd9e5854b107ffa4b3a75be14b7eb7f
treebe5dd46c391d255d4e4825edd354d9ebbe23d5e3
parentc5133e5920a802201824effd13f16f606b8d6971
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.
src/backend/commands/tablecmds.c