Skip to content

Commit eff2d0d

Browse files
petergeogheganpull[bot]
authored andcommitted
Adjust VACUUM hastup LP_REDIRECT comments.
The term "truncation" has been ambiguous since commit 10a8d13 added line pointer array truncation during heap pruning. Clear things up by specifying that we're talking about rel truncation here, to match nearby comments that apply to tuples with storage.
1 parent a42de7b commit eff2d0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/heap/vacuumlazy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,8 @@ lazy_scan_prune(LVRelState *vacrel,
15951595
/* Redirect items mustn't be touched */
15961596
if (ItemIdIsRedirected(itemid))
15971597
{
1598-
prunestate->hastup = true; /* page won't be truncatable */
1598+
/* page makes rel truncation unsafe */
1599+
prunestate->hastup = true;
15991600
continue;
16001601
}
16011602

0 commit comments

Comments
 (0)