mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +03:00
Correct prune WAL record opcode name in comment
f83d709760
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 <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/yn4zp35kkdsjx6wf47zcfmxgexxt4h2og47pvnw2x5ifyrs3qc%407uw6jyyxuyf7
This commit is contained in:
@@ -794,7 +794,7 @@ heap_page_prune_and_freeze(Relation relation, Buffer buffer,
|
|||||||
MarkBufferDirty(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))
|
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:
|
* This is used for several different page maintenance operations:
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user