Improve description of XLOG_RUNNING_XACTS - Mailing list pgsql-hackers

From Masahiko Sawada
Subject Improve description of XLOG_RUNNING_XACTS
Date
Msg-id CAD21AoAqvaE+XEeXHHPdAGQPcCoGXxuoeutq_nWhUSQvTt5+tA@mail.gmail.com
Whole thread Raw
Responses Re: Improve description of XLOG_RUNNING_XACTS
Re: Improve description of XLOG_RUNNING_XACTS
List pgsql-hackers
Hi,

I realized that standby_desc_running_xacts() in standbydesc.c doesn't
describe subtransaction XIDs. I've attached the patch to improve the
description. Here is an example by pg_wlaldump:

* HEAD
rmgr: Standby     len (rec/tot):     58/    58, tx:          0, lsn:
0/01D0C608, prev 0/01D0C5D8, desc: RUNNING_XACTS nextXid 1050
latestCompletedXid 1047 oldestRunningXid 1048; 1 xacts: 1048

* w/ patch
rmgr: Standby     len (rec/tot):     58/    58, tx:          0, lsn:
0/01D0C608, prev 0/01D0C5D8, desc: RUNNING_XACTS nextXid 1050
latestCompletedXid 1047 oldestRunningXid 1048; 1 xacts: 1048; 1
subxacts: 1049

Please review it.

Regards,

-- 
Masahiko Sawada
EDB:  https://www.enterprisedb.com/

Attachment

pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: Memory leak fix in psql
Next
From: Bruce Momjian
Date:
Subject: Re: System catalog documentation chapter