hi
rebased new patch attached.I also did some cosmetic changes. comments refined.make sure using index_scan mechanism to fast check column not-null canonly be used via btree index.isolation tests are simplified.