From 3d927961ae1232487796bebb254d92fb6d0d1e03 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Thu, 19 Apr 2018 09:27:56 +0300 Subject: [PATCH] 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 --- src/backend/access/rmgrdesc/nbtdesc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/backend/access/rmgrdesc/nbtdesc.c b/src/backend/access/rmgrdesc/nbtdesc.c index 0b996ea13a..1590d676fb 100644 --- a/src/backend/access/rmgrdesc/nbtdesc.c +++ b/src/backend/access/rmgrdesc/nbtdesc.c @@ -96,6 +96,15 @@ btree_desc(StringInfo buf, XLogReaderState *record) xlrec->node.relNode, xlrec->latestRemovedXid); 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: id = "REUSE_PAGE"; break; + case XLOG_BTREE_META_CLEANUP: + id = "META_CLEANUP"; + break; } return id; -- 2.40.0