mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Improve the description of XLOG_RUNNING_XACTS.
Previously, the description of XLOG_RUNNING_XACTS showed only top-transaction XIDs and whether subtransactions overflowed. This commit improves it to show individual subtransaction XIDs. This also improves the description of overflowed subtransactions. This additional information can be helpful for testing and debugging purposes. Author: Masahiko Sawada Reviewd by: Fujii Masao, Kyotaro Horiguchi, Ashutosh Bapat, Bharath Rupireddy Discussion: https://postgr.es/m/CAD21AoAqvaE+XEeXHHPdAGQPcCoGXxuoeutq_nWhUSQvTt5+tA@mail.gmail.com
This commit is contained in:
parent
e76502871e
commit
568546f7e4
@ -33,7 +33,14 @@ standby_desc_running_xacts(StringInfo buf, xl_running_xacts *xlrec)
|
||||
}
|
||||
|
||||
if (xlrec->subxid_overflow)
|
||||
appendStringInfoString(buf, "; subxid ovf");
|
||||
appendStringInfoString(buf, "; subxid overflowed");
|
||||
|
||||
if (xlrec->subxcnt > 0)
|
||||
{
|
||||
appendStringInfo(buf, "; %d subxacts:", xlrec->subxcnt);
|
||||
for (i = 0; i < xlrec->subxcnt; i++)
|
||||
appendStringInfo(buf, " %u", xlrec->xids[xlrec->xcnt + i]);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user