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.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ae8ea7278c16a23aa7dfb56c531706c18628ba55;p=users%2Frhaas%2Fpostgres.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 7ebd22f00a..d8ea0c78f7 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: *