@@ -913,7 +913,7 @@ bt_report_duplicate(BtreeCheckState *state,
913
913
(errcode (ERRCODE_INDEX_CORRUPTED ),
914
914
errmsg ("index uniqueness is violated for index \"%s\"" ,
915
915
RelationGetRelationName (state -> rel )),
916
- errdetail ("Index %s%s and%s%s (point to heap %s and %s) page lsn=%X/%X ." ,
916
+ errdetail ("Index %s%s and%s%s (point to heap %s and %s) page lsn=%X/%08X ." ,
917
917
itid , pposting , nitid , pnposting , htid , nhtid ,
918
918
LSN_FORMAT_ARGS (state -> targetlsn ))));
919
919
}
@@ -1058,7 +1058,7 @@ bt_leftmost_ignoring_half_dead(BtreeCheckState *state,
1058
1058
(errcode (ERRCODE_NO_DATA ),
1059
1059
errmsg_internal ("harmless interrupted page deletion detected in index \"%s\"" ,
1060
1060
RelationGetRelationName (state -> rel )),
1061
- errdetail_internal ("Block=%u right block=%u page lsn=%X/%X ." ,
1061
+ errdetail_internal ("Block=%u right block=%u page lsn=%X/%08X ." ,
1062
1062
reached , reached_from ,
1063
1063
LSN_FORMAT_ARGS (pagelsn ))));
1064
1064
@@ -1283,7 +1283,7 @@ bt_target_page_check(BtreeCheckState *state)
1283
1283
(errcode (ERRCODE_INDEX_CORRUPTED ),
1284
1284
errmsg ("wrong number of high key index tuple attributes in index \"%s\"" ,
1285
1285
RelationGetRelationName (state -> rel )),
1286
- errdetail_internal ("Index block=%u natts=%u block type=%s page lsn=%X/%X ." ,
1286
+ errdetail_internal ("Index block=%u natts=%u block type=%s page lsn=%X/%08X ." ,
1287
1287
state -> targetblock ,
1288
1288
BTreeTupleGetNAtts (itup , state -> rel ),
1289
1289
P_ISLEAF (topaque ) ? "heap" : "index" ,
@@ -1332,7 +1332,7 @@ bt_target_page_check(BtreeCheckState *state)
1332
1332
(errcode (ERRCODE_INDEX_CORRUPTED ),
1333
1333
errmsg ("index tuple size does not equal lp_len in index \"%s\"" ,
1334
1334
RelationGetRelationName (state -> rel )),
1335
- errdetail_internal ("Index tid=(%u,%u) tuple size=%zu lp_len=%u page lsn=%X/%X ." ,
1335
+ errdetail_internal ("Index tid=(%u,%u) tuple size=%zu lp_len=%u page lsn=%X/%08X ." ,
1336
1336
state -> targetblock , offset ,
1337
1337
tupsize , ItemIdGetLength (itemid ),
1338
1338
LSN_FORMAT_ARGS (state -> targetlsn )),
@@ -1356,7 +1356,7 @@ bt_target_page_check(BtreeCheckState *state)
1356
1356
(errcode (ERRCODE_INDEX_CORRUPTED ),
1357
1357
errmsg ("wrong number of index tuple attributes in index \"%s\"" ,
1358
1358
RelationGetRelationName (state -> rel )),
1359
- errdetail_internal ("Index tid=%s natts=%u points to %s tid=%s page lsn=%X/%X ." ,
1359
+ errdetail_internal ("Index tid=%s natts=%u points to %s tid=%s page lsn=%X/%08X ." ,
1360
1360
itid ,
1361
1361
BTreeTupleGetNAtts (itup , state -> rel ),
1362
1362
P_ISLEAF (topaque ) ? "heap" : "index" ,
@@ -1406,7 +1406,7 @@ bt_target_page_check(BtreeCheckState *state)
1406
1406
(errcode (ERRCODE_INDEX_CORRUPTED ),
1407
1407
errmsg ("could not find tuple using search from root page in index \"%s\"" ,
1408
1408
RelationGetRelationName (state -> rel )),
1409
- errdetail_internal ("Index tid=%s points to heap tid=%s page lsn=%X/%X ." ,
1409
+ errdetail_internal ("Index tid=%s points to heap tid=%s page lsn=%X/%08X ." ,
1410
1410
itid , htid ,
1411
1411
LSN_FORMAT_ARGS (state -> targetlsn ))));
1412
1412
}
@@ -1435,7 +1435,7 @@ bt_target_page_check(BtreeCheckState *state)
1435
1435
(errcode (ERRCODE_INDEX_CORRUPTED ),
1436
1436
errmsg_internal ("posting list contains misplaced TID in index \"%s\"" ,
1437
1437
RelationGetRelationName (state -> rel )),
1438
- errdetail_internal ("Index tid=%s posting list offset=%d page lsn=%X/%X ." ,
1438
+ errdetail_internal ("Index tid=%s posting list offset=%d page lsn=%X/%08X ." ,
1439
1439
itid , i ,
1440
1440
LSN_FORMAT_ARGS (state -> targetlsn ))));
1441
1441
}
@@ -1488,7 +1488,7 @@ bt_target_page_check(BtreeCheckState *state)
1488
1488
(errcode (ERRCODE_INDEX_CORRUPTED ),
1489
1489
errmsg ("index row size %zu exceeds maximum for index \"%s\"" ,
1490
1490
tupsize , RelationGetRelationName (state -> rel )),
1491
- errdetail_internal ("Index tid=%s points to %s tid=%s page lsn=%X/%X ." ,
1491
+ errdetail_internal ("Index tid=%s points to %s tid=%s page lsn=%X/%08X ." ,
1492
1492
itid ,
1493
1493
P_ISLEAF (topaque ) ? "heap" : "index" ,
1494
1494
htid ,
@@ -1595,7 +1595,7 @@ bt_target_page_check(BtreeCheckState *state)
1595
1595
(errcode (ERRCODE_INDEX_CORRUPTED ),
1596
1596
errmsg ("high key invariant violated for index \"%s\"" ,
1597
1597
RelationGetRelationName (state -> rel )),
1598
- errdetail_internal ("Index tid=%s points to %s tid=%s page lsn=%X/%X ." ,
1598
+ errdetail_internal ("Index tid=%s points to %s tid=%s page lsn=%X/%08X ." ,
1599
1599
itid ,
1600
1600
P_ISLEAF (topaque ) ? "heap" : "index" ,
1601
1601
htid ,
@@ -1641,9 +1641,7 @@ bt_target_page_check(BtreeCheckState *state)
1641
1641
(errcode (ERRCODE_INDEX_CORRUPTED ),
1642
1642
errmsg ("item order invariant violated for index \"%s\"" ,
1643
1643
RelationGetRelationName (state -> rel )),
1644
- errdetail_internal ("Lower index tid=%s (points to %s tid=%s) "
1645
- "higher index tid=%s (points to %s tid=%s) "
1646
- "page lsn=%X/%X." ,
1644
+ errdetail_internal ("Lower index tid=%s (points to %s tid=%s) higher index tid=%s (points to %s tid=%s) page lsn=%X/%08X." ,
1647
1645
itid ,
1648
1646
P_ISLEAF (topaque ) ? "heap" : "index" ,
1649
1647
htid ,
@@ -1760,7 +1758,7 @@ bt_target_page_check(BtreeCheckState *state)
1760
1758
(errcode (ERRCODE_INDEX_CORRUPTED ),
1761
1759
errmsg ("cross page item order invariant violated for index \"%s\"" ,
1762
1760
RelationGetRelationName (state -> rel )),
1763
- errdetail_internal ("Last item on page tid=(%u,%u) page lsn=%X/%X ." ,
1761
+ errdetail_internal ("Last item on page tid=(%u,%u) page lsn=%X/%08X ." ,
1764
1762
state -> targetblock , offset ,
1765
1763
LSN_FORMAT_ARGS (state -> targetlsn ))));
1766
1764
}
@@ -1813,7 +1811,7 @@ bt_target_page_check(BtreeCheckState *state)
1813
1811
(errcode (ERRCODE_INDEX_CORRUPTED ),
1814
1812
errmsg ("right block of leaf block is non-leaf for index \"%s\"" ,
1815
1813
RelationGetRelationName (state -> rel )),
1816
- errdetail_internal ("Block=%u page lsn=%X/%X ." ,
1814
+ errdetail_internal ("Block=%u page lsn=%X/%08X ." ,
1817
1815
state -> targetblock ,
1818
1816
LSN_FORMAT_ARGS (state -> targetlsn ))));
1819
1817
@@ -2237,7 +2235,7 @@ bt_child_highkey_check(BtreeCheckState *state,
2237
2235
(errcode (ERRCODE_INDEX_CORRUPTED ),
2238
2236
errmsg ("the first child of leftmost target page is not leftmost of its level in index \"%s\"" ,
2239
2237
RelationGetRelationName (state -> rel )),
2240
- errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%X ." ,
2238
+ errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%08X ." ,
2241
2239
state -> targetblock , blkno ,
2242
2240
LSN_FORMAT_ARGS (state -> targetlsn ))));
2243
2241
@@ -2323,7 +2321,7 @@ bt_child_highkey_check(BtreeCheckState *state,
2323
2321
(errcode (ERRCODE_INDEX_CORRUPTED ),
2324
2322
errmsg ("child high key is greater than rightmost pivot key on target level in index \"%s\"" ,
2325
2323
RelationGetRelationName (state -> rel )),
2326
- errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%X ." ,
2324
+ errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%08X ." ,
2327
2325
state -> targetblock , blkno ,
2328
2326
LSN_FORMAT_ARGS (state -> targetlsn ))));
2329
2327
pivotkey_offset = P_HIKEY ;
@@ -2353,7 +2351,7 @@ bt_child_highkey_check(BtreeCheckState *state,
2353
2351
(errcode (ERRCODE_INDEX_CORRUPTED ),
2354
2352
errmsg ("can't find left sibling high key in index \"%s\"" ,
2355
2353
RelationGetRelationName (state -> rel )),
2356
- errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%X ." ,
2354
+ errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%08X ." ,
2357
2355
state -> targetblock , blkno ,
2358
2356
LSN_FORMAT_ARGS (state -> targetlsn ))));
2359
2357
itup = state -> lowkey ;
@@ -2365,7 +2363,7 @@ bt_child_highkey_check(BtreeCheckState *state,
2365
2363
(errcode (ERRCODE_INDEX_CORRUPTED ),
2366
2364
errmsg ("mismatch between parent key and child high key in index \"%s\"" ,
2367
2365
RelationGetRelationName (state -> rel )),
2368
- errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%X ." ,
2366
+ errdetail_internal ("Target block=%u child block=%u target page lsn=%X/%08X ." ,
2369
2367
state -> targetblock , blkno ,
2370
2368
LSN_FORMAT_ARGS (state -> targetlsn ))));
2371
2369
}
@@ -2505,7 +2503,7 @@ bt_child_check(BtreeCheckState *state, BTScanInsert targetkey,
2505
2503
(errcode (ERRCODE_INDEX_CORRUPTED ),
2506
2504
errmsg ("downlink to deleted page found in index \"%s\"" ,
2507
2505
RelationGetRelationName (state -> rel )),
2508
- errdetail_internal ("Parent block=%u child block=%u parent page lsn=%X/%X ." ,
2506
+ errdetail_internal ("Parent block=%u child block=%u parent page lsn=%X/%08X ." ,
2509
2507
state -> targetblock , childblock ,
2510
2508
LSN_FORMAT_ARGS (state -> targetlsn ))));
2511
2509
@@ -2546,7 +2544,7 @@ bt_child_check(BtreeCheckState *state, BTScanInsert targetkey,
2546
2544
(errcode (ERRCODE_INDEX_CORRUPTED ),
2547
2545
errmsg ("down-link lower bound invariant violated for index \"%s\"" ,
2548
2546
RelationGetRelationName (state -> rel )),
2549
- errdetail_internal ("Parent block=%u child index tid=(%u,%u) parent page lsn=%X/%X ." ,
2547
+ errdetail_internal ("Parent block=%u child index tid=(%u,%u) parent page lsn=%X/%08X ." ,
2550
2548
state -> targetblock , childblock , offset ,
2551
2549
LSN_FORMAT_ARGS (state -> targetlsn ))));
2552
2550
}
@@ -2616,7 +2614,7 @@ bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit,
2616
2614
(errcode (ERRCODE_NO_DATA ),
2617
2615
errmsg_internal ("harmless interrupted page split detected in index \"%s\"" ,
2618
2616
RelationGetRelationName (state -> rel )),
2619
- errdetail_internal ("Block=%u level=%u left sibling=%u page lsn=%X/%X ." ,
2617
+ errdetail_internal ("Block=%u level=%u left sibling=%u page lsn=%X/%08X ." ,
2620
2618
blkno , opaque -> btpo_level ,
2621
2619
opaque -> btpo_prev ,
2622
2620
LSN_FORMAT_ARGS (pagelsn ))));
@@ -2638,7 +2636,7 @@ bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit,
2638
2636
(errcode (ERRCODE_INDEX_CORRUPTED ),
2639
2637
errmsg ("leaf index block lacks downlink in index \"%s\"" ,
2640
2638
RelationGetRelationName (state -> rel )),
2641
- errdetail_internal ("Block=%u page lsn=%X/%X ." ,
2639
+ errdetail_internal ("Block=%u page lsn=%X/%08X ." ,
2642
2640
blkno ,
2643
2641
LSN_FORMAT_ARGS (pagelsn ))));
2644
2642
@@ -2704,7 +2702,7 @@ bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit,
2704
2702
(errcode (ERRCODE_INDEX_CORRUPTED ),
2705
2703
errmsg_internal ("downlink to deleted leaf page found in index \"%s\"" ,
2706
2704
RelationGetRelationName (state -> rel )),
2707
- errdetail_internal ("Top parent/target block=%u leaf block=%u top parent/under check lsn=%X/%X ." ,
2705
+ errdetail_internal ("Top parent/target block=%u leaf block=%u top parent/under check lsn=%X/%08X ." ,
2708
2706
blkno , childblk ,
2709
2707
LSN_FORMAT_ARGS (pagelsn ))));
2710
2708
@@ -2730,7 +2728,7 @@ bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit,
2730
2728
(errcode (ERRCODE_INDEX_CORRUPTED ),
2731
2729
errmsg ("internal index block lacks downlink in index \"%s\"" ,
2732
2730
RelationGetRelationName (state -> rel )),
2733
- errdetail_internal ("Block=%u level=%u page lsn=%X/%X ." ,
2731
+ errdetail_internal ("Block=%u level=%u page lsn=%X/%08X ." ,
2734
2732
blkno , opaque -> btpo_level ,
2735
2733
LSN_FORMAT_ARGS (pagelsn ))));
2736
2734
}
0 commit comments