]> granicus.if.org Git - postgresql/commit
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:47 +0000 (22:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Jul 2006 22:10:47 +0000 (22:10 +0000)
commite0bb171960319080463a37541e289cb48d667f7c
tree94201e9c7e1e5120167efd656db1a4ded523d594
parentfe204535a736e3965eab4f3e64acc19222cb1e4c
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