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

Commit83e3239

Browse files
Standardize one aspect of rmgr desc output.
Bring heap and hash rmgr desc output in line with nbtree and GiST descoutput by using the name latestRemovedXid for all fields that output thecontents of the latestRemovedXid field from the WAL record's C struct(stop using local variants).This seems like a clear improvement because latestRemovedXid is a symbolname that already appears across many different source files, and so isprobably much more recognizable.Discussion:https://postgr.es/m/CAH2-Wzkt_Rs4VqPSCk87nyjPAAEmWL8STU9zgET_83EF5YfrLw@mail.gmail.com
1 parentcd357c7 commit83e3239

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/access/rmgrdesc/hashdesc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ hash_desc(StringInfo buf, XLogReaderState *record)
113113
{
114114
xl_hash_vacuum_one_page*xlrec= (xl_hash_vacuum_one_page*)rec;
115115

116-
appendStringInfo(buf,"ntuples %d,latest removed xid %u",
116+
appendStringInfo(buf,"ntuples %d,latestRemovedXid %u",
117117
xlrec->ntuples,
118118
xlrec->latestRemovedXid);
119119
break;

‎src/backend/access/rmgrdesc/heapdesc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ heap2_desc(StringInfo buf, XLogReaderState *record)
125125
{
126126
xl_heap_clean*xlrec= (xl_heap_clean*)rec;
127127

128-
appendStringInfo(buf,"remxid %u",xlrec->latestRemovedXid);
128+
appendStringInfo(buf,"latestRemovedXid %u",xlrec->latestRemovedXid);
129129
}
130130
elseif (info==XLOG_HEAP2_FREEZE_PAGE)
131131
{
@@ -138,7 +138,7 @@ heap2_desc(StringInfo buf, XLogReaderState *record)
138138
{
139139
xl_heap_cleanup_info*xlrec= (xl_heap_cleanup_info*)rec;
140140

141-
appendStringInfo(buf,"remxid %u",xlrec->latestRemovedXid);
141+
appendStringInfo(buf,"latestRemovedXid %u",xlrec->latestRemovedXid);
142142
}
143143
elseif (info==XLOG_HEAP2_VISIBLE)
144144
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp