]> 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:57 +0000 (22:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Jul 2006 22:10:57 +0000 (22:10 +0000)
commit6e37be02e71ddc9cecad1ba962397cfc4a27e922
treef7ed1387329d65363d020b15f3d1d9ae60c9a2fc
parentacf40f39be47cd92ff394e9c42f9ffa4dfd741ed
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