Added versioning to tuples

This commit is contained in:
Andrew Kane
2024-09-20 15:12:39 -07:00
parent 3dde18a883
commit f20f5e28b8
4 changed files with 35 additions and 8 deletions

View File

@@ -527,6 +527,11 @@ MarkDeleted(HnswVacuumState * vacuumstate)
for (int i = 0; i < ntup->count; i++)
ItemPointerSetInvalid(&ntup->indextids[i]);
/* Increment version */
/* This is used to avoid incorrect reads for iterative scans */
etup->version++;
ntup->version = etup->version;
/*
* We modified the tuples in place, no need to call
* PageIndexTupleOverwrite