Content-Length: 257815 | pFad | http://github.com/postgrespro/postgres/commit/325bc54eed4ea0836a0bb715bb18342f0c1c668a

8E Adjust VACUUM hastup LP_REDIRECT comments. · postgrespro/postgres@325bc54 · GitHub
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

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/325bc54eed4ea0836a0bb715bb18342f0c1c668a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy