Adjust VACUUM hastup LP_REDIRECT comments.
authorPeter Geoghegan <[email protected]>
Mon, 2 Jan 2023 18:18:22 +0000 (10:18 -0800)
committerPeter Geoghegan <[email protected]>
Mon, 2 Jan 2023 18:18:22 +0000 (10:18 -0800)
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

index 5d8fd2fb72742e4cf30c72586c6126079fee3ce6..e962b8d72bc2c318565c6b3a15db4d3a9cd8527d 100644 (file)
@@ -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;
                }