When you apply this, please put the remaining array-overflow checks before the overflow occurs, not after. See patches I just applied in the back branches.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
