I think we can fix it in getTableAttrs(), see attached, with that I can see my dump is correct. This is just a quick way to show what I am thinking, maybe we can improve this condition. I believe flagInhAttrs() is more about resetting the "notnull_islocal" if any of the parent already has it as non null. This fix is working with this basic case, but I haven't investigated whether it will work in all cases or is it breaking anything.