mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Handle XLOG_BTREE_META_CLEANUP in btree_desc() and btree_identify()
New WAL record XLOG_BTREE_META_CLEANUP introduced in 857f9c36
has no handling
in btree_desc() and btree_identify(). This patch implements corresponding
handling.
Alexander Korotkov
This commit is contained in:
@ -96,6 +96,15 @@ btree_desc(StringInfo buf, XLogReaderState *record)
|
|||||||
xlrec->node.relNode, xlrec->latestRemovedXid);
|
xlrec->node.relNode, xlrec->latestRemovedXid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case XLOG_BTREE_META_CLEANUP:
|
||||||
|
{
|
||||||
|
xl_btree_metadata *xlrec = (xl_btree_metadata *) rec;
|
||||||
|
|
||||||
|
appendStringInfo(buf, "oldest_btpo_xact %u; last_cleanup_num_heap_tuples: %lf",
|
||||||
|
xlrec->oldest_btpo_xact,
|
||||||
|
xlrec->last_cleanup_num_heap_tuples);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +157,9 @@ btree_identify(uint8 info)
|
|||||||
case XLOG_BTREE_REUSE_PAGE:
|
case XLOG_BTREE_REUSE_PAGE:
|
||||||
id = "REUSE_PAGE";
|
id = "REUSE_PAGE";
|
||||||
break;
|
break;
|
||||||
|
case XLOG_BTREE_META_CLEANUP:
|
||||||
|
id = "META_CLEANUP";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
|
Reference in New Issue
Block a user