pg_upgrade: check for types removed in pg12