Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d92796

Browse files
committed
Handle XLOG_BTREE_META_CLEANUP in btree_desc() and btree_identify()
New WAL record XLOG_BTREE_META_CLEANUP introduced in857f9c3 has no handlingin btree_desc() and btree_identify(). This patch implements correspondinghandling.Alexander Korotkov
1 parent075aade commit3d92796

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+
caseXLOG_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
caseXLOG_BTREE_REUSE_PAGE:
149158
id="REUSE_PAGE";
150159
break;
160+
caseXLOG_BTREE_META_CLEANUP:
161+
id="META_CLEANUP";
162+
break;
151163
}
152164

153165
returnid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp