Skip to content

Commit 3d92796

Browse files
committed
Handle XLOG_BTREE_META_CLEANUP in btree_desc() and btree_identify()
New WAL record XLOG_BTREE_META_CLEANUP introduced in 857f9c3 has no handling in btree_desc() and btree_identify(). This patch implements corresponding handling. Alexander Korotkov
1 parent 075aade commit 3d92796

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/backend/access/rmgrdesc/nbtdesc.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ btree_desc(StringInfo buf, XLogReaderState *record)
9696
xlrec->node.relNode, xlrec->latestRemovedXid);
9797
break;
9898
}
99+
case XLOG_BTREE_META_CLEANUP:
100+
{
101+
xl_btree_metadata *xlrec = (xl_btree_metadata *) rec;
102+
103+
appendStringInfo(buf, "oldest_btpo_xact %u; last_cleanup_num_heap_tuples: %lf",
104+
xlrec->oldest_btpo_xact,
105+
xlrec->last_cleanup_num_heap_tuples);
106+
break;
107+
}
99108
}
100109
}
101110

@@ -148,6 +157,9 @@ btree_identify(uint8 info)
148157
case XLOG_BTREE_REUSE_PAGE:
149158
id = "REUSE_PAGE";
150159
break;
160+
case XLOG_BTREE_META_CLEANUP:
161+
id = "META_CLEANUP";
162+
break;
151163
}
152164

153165
return id;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy