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

Commit568546f

Browse files
author
Amit Kapila
committed
Improve the description of XLOG_RUNNING_XACTS.
Previously, the description of XLOG_RUNNING_XACTS showed onlytop-transaction XIDs and whether subtransactions overflowed. This commitimproves it to show individual subtransaction XIDs. This also improves thedescription of overflowed subtransactions.This additional information can be helpful for testing and debuggingpurposes.Author: Masahiko SawadaReviewd by: Fujii Masao, Kyotaro Horiguchi, Ashutosh Bapat, Bharath RupireddyDiscussion:https://postgr.es/m/CAD21AoAqvaE+XEeXHHPdAGQPcCoGXxuoeutq_nWhUSQvTt5+tA@mail.gmail.com
1 parente765028 commit568546f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ standby_desc_running_xacts(StringInfo buf, xl_running_xacts *xlrec)
3333
}
3434

3535
if (xlrec->subxid_overflow)
36-
appendStringInfoString(buf,"; subxid ovf");
36+
appendStringInfoString(buf,"; subxid overflowed");
37+
38+
if (xlrec->subxcnt>0)
39+
{
40+
appendStringInfo(buf,"; %d subxacts:",xlrec->subxcnt);
41+
for (i=0;i<xlrec->subxcnt;i++)
42+
appendStringInfo(buf," %u",xlrec->xids[xlrec->xcnt+i]);
43+
}
3744
}
3845

3946
void

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp