Skip to content

Commit 2494a9a

Browse files
committed
Don't require oldestMultixact if server doesn't have it
1 parent 6772c1e commit 2494a9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/pg_upgrade/controldata.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ get_control_data(ClusterInfo *cluster, bool live_check)
469469

470470
/* verify that we got all the mandatory pg_control data */
471471
if (!got_xid || !got_oid ||
472-
!got_multi || !got_mxoff || !got_oldestmulti ||
472+
!got_multi || !got_mxoff ||
473+
(!got_oldestmulti && GET_MAJOR_VERSION(cluster->major_version) >= 903) ||
473474
(!live_check && !got_nextxlogfile) ||
474475
!got_tli ||
475476
!got_align || !got_blocksz || !got_largesz || !got_walsz ||
@@ -492,7 +493,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
492493
if (!got_mxoff)
493494
pg_log(PG_REPORT, " latest checkpoint next MultiXactOffset\n");
494495

495-
if (!got_oldestmulti)
496+
if (!got_oldestmulti && GET_MAJOR_VERSION(cluster->major_version) >= 903)
496497
pg_log(PG_REPORT, " latest checkpoint oldest MultiXactId\n");
497498

498499
if (!live_check && !got_nextxlogfile)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy