Fix ordering of items in nbtree error message.
authorPeter Geoghegan <[email protected]>
Wed, 27 Oct 2021 20:05:35 +0000 (13:05 -0700)
committerPeter Geoghegan <[email protected]>
Wed, 27 Oct 2021 20:09:24 +0000 (13:09 -0700)
Oversight in commit a5213adf.

Backpatch: 13-, just like commit a5213adf.

src/backend/access/nbtree/nbtinsert.c

index a755aee55eb6497735b5d90632ba7490dbd9e944..1241c56239721446a473f8aebd12c1df06945f02 100644 (file)
@@ -1184,7 +1184,7 @@ _bt_insertonpg(Relation rel,
                                         errmsg_internal("table tid from new index tuple (%u,%u) overlaps with invalid duplicate tuple at offset %u of block %u in index \"%s\"",
                                                                         ItemPointerGetBlockNumber(&itup->t_tid),
                                                                         ItemPointerGetOffsetNumber(&itup->t_tid),
-                                                                        BufferGetBlockNumber(buf), newitemoff,
+                                                                        newitemoff, BufferGetBlockNumber(buf),
                                                                         RelationGetRelationName(rel))));
 
                /* use a mutable copy of itup as our itup from here on */