Why does the argument include_notnull argument exist ifget_relation_constraints() is being called from only one place? Perhaps wecould remove it and add the IS NOT NULL test expression unconditionally ifthere are any NOT NULL columns.
Thanks,Amit