@@ -4541,7 +4541,7 @@ binary_upgrade_set_type_oids_by_type_oid(Archive *fout,
45414541 */
45424542if (include_multirange_type)
45434543{
4544- if (fout->remoteVersion >=130000 )
4544+ if (fout->remoteVersion >=140000 )
45454545{
45464546appendPQExpBuffer(upgrade_query,
45474547 "SELECT t.oid, t.typarray "
@@ -8402,7 +8402,7 @@ getCasts(Archive *fout, int *numCasts)
84028402inti_castcontext;
84038403inti_castmethod;
84048404
8405- if (fout->remoteVersion >=130000 )
8405+ if (fout->remoteVersion >=140000 )
84068406{
84078407appendPQExpBufferStr(query, "SELECT tableoid, oid, "
84088408 "castsource, casttarget, castfunc, castcontext, "
@@ -10709,7 +10709,7 @@ dumpRangeType(Archive *fout, TypeInfo *tyinfo)
1070910709appendPQExpBuffer(q, "\n subtype = %s",
1071010710 PQgetvalue(res, 0, PQfnumber(res, "rngsubtype")));
1071110711
10712- if (PQgetvalue (res, 0, PQfnumber(res, "rngmultitype")))
10712+ if (!PQgetisnull (res, 0, PQfnumber(res, "rngmultitype")))
1071310713appendPQExpBuffer(q, ",\n multirange_type_name = %s",
1071410714 PQgetvalue(res, 0, PQfnumber(res, "rngmultitype")));
1071510715