From 325bc54eed4ea0836a0bb715bb18342f0c1c668a Mon Sep 17 00:00:00 2001 From: Peter Geoghegan Date: Mon, 2 Jan 2023 10:18:22 -0800 Subject: [PATCH] Adjust VACUUM hastup LP_REDIRECT comments. The term "truncation" has been ambiguous since commit 10a8d13823 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. --- src/backend/access/heap/vacuumlazy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 5d8fd2fb72..e962b8d72b 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1595,7 +1595,8 @@ retry: /* Redirect items mustn't be touched */ if (ItemIdIsRedirected(itemid)) { - prunestate->hastup = true; /* page won't be truncatable */ + /* page makes rel truncation unsafe */ + prunestate->hastup = true; continue; }