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)
commit686fafd66a59d5ddc857fa8303233cece753911d
treec3521d6e232ab4cf2b628ae3e565d885a8899f90
parent3cf7f4e0e4f32e5f9a5103966ba44c22fad55be3
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