avoid overflow from casting oid result to integer, causing failure to find name of primary key column