From: Peter Geoghegan Date: Mon, 2 Jan 2023 18:18:22 +0000 (-0800) Subject: Adjust VACUUM hastup LP_REDIRECT comments. X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=325bc54eed4ea0836a0bb715bb18342f0c1c668a;p=users%2Frhaas%2Fpostgres.git 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. --- 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; }