This stuff all seems to be fixed in current sources. There may be apost-release patch or two involved, but the bulk of the fixes are in7.0 final.
regards, tom lane