Convert a bytea column to OID while retaining values Convert a bytea column to OID while retaining values postgresql postgresql