*** pgsql/src/backend/commands/tablecmds.c 2007/02/02 00:07:44 1.174.2.4 --- pgsql/src/backend/commands/tablecmds.c 2008/04/24 20:18:15 1.174.2.5 *************** *** 8,14 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.174.2.3 2006/07/10 22:10:47 tgl Exp $ * *------------------------------------------------------------------------- */ --- 8,14 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.174.2.4 2007/02/02 00:07:44 tgl Exp $ * *------------------------------------------------------------------------- */ *************** ATExecAddColumn(AlteredTableInfo *tab, R *** 3139,3144 **** --- 3139,3149 ---- } /* + * If the new column is NOT NULL, tell Phase 3 it needs to test that. + */ + tab->new_notnull |= colDef->is_not_null; + + /* * Add needed dependency entries for the new column. */ add_column_datatype_dependency(myrelid, i, attribute->atttypid);