File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/backend/access/nbtree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,9 @@ _bt_update_posting(BTVacuumPosting vacposting)
688
688
else
689
689
newsize = keysize ;
690
690
691
+ Assert (newsize <= INDEX_SIZE_MASK );
692
+ Assert (newsize == MAXALIGN (newsize ));
693
+
691
694
/* Allocate memory using palloc0() (matches index_form_tuple()) */
692
695
itup = palloc0 (newsize );
693
696
memcpy (itup , origtuple , keysize );
@@ -721,6 +724,7 @@ _bt_update_posting(BTVacuumPosting vacposting)
721
724
Assert (ui == nhtids );
722
725
Assert (d == vacposting -> ndeletedtids );
723
726
Assert (nhtids == 1 || _bt_posting_valid (itup ));
727
+ Assert (nhtids > 1 || ItemPointerIsValid (& itup -> t_tid ));
724
728
725
729
/* vacposting arg's itup will now point to updated version */
726
730
vacposting -> itup = itup ;
You can’t perform that action at this time.
0 commit comments