When searching for OID of a Type, current search_path is not considered and if type with the same name exists in several schemas, not a valid OID is fetched to be cached in TypeInfoCache class.