Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2494a9a

Browse files
committed
Don't require oldestMultixact if server doesn't have it
1 parent6772c1e commit2494a9a

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)

[8]ページ先頭

©2009-2025 Movatter.jp