Skip to content

Commit 325bc54

Browse files
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 6daeeb1 commit 325bc54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/heap/vacuumlazy.c

+2-1
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)