postgres.git / summary / log / commit / refs

commit    325bc54eed4ea0836a0bb715bb18342f0c1c668a
Author:   Peter Geoghegan <pg@bowt.ie>
Date:     Mon Jan 02 18:18:22 2023 +0000
First released in: 16.0

    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 5d8fd2fb727..e962b8d72bc 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; } [parent: 6daeeb1f9196]