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

Commitd126e1e

Browse files
committed
Tweak heapam's rmgr desc output slightly
Some spaces were missing, and putting the affected tuple offset first inthe lock cases instead of the locking data makes more sense.No backpatch since this is cosmetic and surrounding code has changed.
1 parent5c5ffee commitd126e1e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ heap_desc(StringInfo buf, XLogReaderState *record)
4848
{
4949
xl_heap_delete*xlrec= (xl_heap_delete*)rec;
5050

51-
appendStringInfo(buf,"off %u",xlrec->offnum);
52-
appendStringInfoChar(buf,' ');
51+
appendStringInfo(buf,"off %u ",xlrec->offnum);
5352
out_infobits(buf,xlrec->infobits_set);
5453
}
5554
elseif (info==XLOG_HEAP_UPDATE)
5655
{
5756
xl_heap_update*xlrec= (xl_heap_update*)rec;
5857

59-
appendStringInfo(buf,"off %u xmax %u",
58+
appendStringInfo(buf,"off %u xmax %u",
6059
xlrec->old_offnum,
6160
xlrec->old_xmax);
6261
out_infobits(buf,xlrec->old_infobits_set);
@@ -68,7 +67,7 @@ heap_desc(StringInfo buf, XLogReaderState *record)
6867
{
6968
xl_heap_update*xlrec= (xl_heap_update*)rec;
7069

71-
appendStringInfo(buf,"off %u xmax %u",
70+
appendStringInfo(buf,"off %u xmax %u",
7271
xlrec->old_offnum,
7372
xlrec->old_xmax);
7473
out_infobits(buf,xlrec->old_infobits_set);
@@ -80,8 +79,7 @@ heap_desc(StringInfo buf, XLogReaderState *record)
8079
{
8180
xl_heap_lock*xlrec= (xl_heap_lock*)rec;
8281

83-
appendStringInfo(buf,"xid %u: ",xlrec->locking_xid);
84-
appendStringInfo(buf,"off %u ",xlrec->offnum);
82+
appendStringInfo(buf,"off %u: xid %u ",xlrec->offnum,xlrec->locking_xid);
8583
out_infobits(buf,xlrec->infobits_set);
8684
}
8785
elseif (info==XLOG_HEAP_INPLACE)
@@ -133,9 +131,8 @@ heap2_desc(StringInfo buf, XLogReaderState *record)
133131
{
134132
xl_heap_lock_updated*xlrec= (xl_heap_lock_updated*)rec;
135133

136-
appendStringInfo(buf,"xmax %u msk %04x; ",xlrec->xmax,
137-
xlrec->infobits_set);
138-
appendStringInfo(buf,"off %u",xlrec->offnum);
134+
appendStringInfo(buf,"off %u: xmax %u ",xlrec->offnum,xlrec->xmax);
135+
out_infobits(buf,xlrec->infobits_set);
139136
}
140137
elseif (info==XLOG_HEAP2_NEW_CID)
141138
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp