]> granicus.if.org Git - postgresql/commitdiff
Don't require oldestMultixact if server doesn't have it
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 24 Jan 2013 14:53:15 +0000 (11:53 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 24 Jan 2013 14:55:10 +0000 (11:55 -0300)
contrib/pg_upgrade/controldata.c

index f4252af4edca2c5f7c2297d472e526bafefb481d..2ea0ce442d13fd58b9db4d5ef0a7ea3acd4c62fb 100644 (file)
@@ -469,7 +469,8 @@ get_control_data(ClusterInfo *cluster, bool live_check)
 
        /* verify that we got all the mandatory pg_control data */
        if (!got_xid || !got_oid ||
-               !got_multi || !got_mxoff || !got_oldestmulti ||
+               !got_multi || !got_mxoff ||
+               (!got_oldestmulti && GET_MAJOR_VERSION(cluster->major_version) >= 903) ||
                (!live_check && !got_nextxlogfile) ||
                !got_tli ||
                !got_align || !got_blocksz || !got_largesz || !got_walsz ||
@@ -492,7 +493,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
                if (!got_mxoff)
                        pg_log(PG_REPORT, "  latest checkpoint next MultiXactOffset\n");
 
-               if (!got_oldestmulti)
+               if (!got_oldestmulti && GET_MAJOR_VERSION(cluster->major_version) >= 903)
                        pg_log(PG_REPORT, "  latest checkpoint oldest MultiXactId\n");
 
                if (!live_check && !got_nextxlogfile)