Improving overflow checks when adding tuple to PGresult

Improving overflow checks when adding tuple to PGresult

Edit