From: Melanie Plageman Date: Wed, 24 Sep 2025 16:29:13 +0000 (-0400) Subject: Correct prune WAL record opcode name in comment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae8ea7278c16a23aa7dfb56c531706c18628ba55;p=thirdparty%2Fpostgresql.git Correct prune WAL record opcode name in comment f83d709760d8 incorrectly refers to a XLOG_HEAP2_PRUNE_FREEZE WAL record opcode. No such code exists. The relevant opcodes are XLOG_HEAP2_PRUNE_ON_ACCESS, XLOG_HEAP2_PRUNE_VACUUM_SCAN, and XLOG_HEAP2_PRUNE_VACUUM_CLEANUP. Correct it. Author: Melanie Plageman Reviewed-by: Andres Freund Discussion: https://postgr.es/m/yn4zp35kkdsjx6wf47zcfmxgexxt4h2og47pvnw2x5ifyrs3qc%407uw6jyyxuyf7 --- diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index 7ebd22f00a3..d8ea0c78f77 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -794,7 +794,7 @@ heap_page_prune_and_freeze(Relation relation, Buffer buffer, MarkBufferDirty(buffer); /* - * Emit a WAL XLOG_HEAP2_PRUNE_FREEZE record showing what we did + * Emit a WAL XLOG_HEAP2_PRUNE* record showing what we did */ if (RelationNeedsWAL(relation)) { @@ -2026,7 +2026,7 @@ heap_log_freeze_plan(HeapTupleFreeze *tuples, int ntuples, } /* - * Write an XLOG_HEAP2_PRUNE_FREEZE WAL record + * Write an XLOG_HEAP2_PRUNE* WAL record * * This is used for several different page maintenance operations: *