From: | Ashutosh Bapat <ashutosh(dot)bapat(at)enterprisedb(dot)com> |
---|---|
To: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
Cc: | Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Improve description of XLOG_RUNNING_XACTS |
Date: | 2022-07-28 04:26:33 |
Message-ID: | CAGEoWWSy9qdubmJyA4dh+indB-+68zaaxYLzOVg6HBk=UiYMYg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thanks Masahiko for the updated patch. It looks good to me.
I wonder whether the logic should be, similar
to ProcArrayApplyRecoveryInfo()
if (xlrec->subxid_overflow)
...
else if (xlrec->subxcnt > 0)
...
But you may ignore it.
--
Best Wishes,
Ashutosh
On Thu, Jul 28, 2022 at 7:41 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
wrote:
> On Thu, Jul 21, 2022 at 10:13 PM Ashutosh Bapat
> <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> wrote:
> >
> > Hi
> >
> > On Thu, Jul 21, 2022 at 6:44 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
> wrote:
> > >
> > > 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
> > >
> >
> > I think this is a good addition to debugging info. +1
> >
> > If we are going to add 64 subxid numbers then it would help if we
> > could be more verbose and print "subxid overflowed" instead of "subxid
> > ovf".
>
> Yeah, it looks better so agreed. I've attached an updated patch.
>
> Regards,
>
> --
> Masahiko Sawada
> EDB: https://www.enterprisedb.com/
>
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2022-07-28 04:28:51 | Re: Official Windows Installer and Documentation |
Previous Message | houzj.fnst@fujitsu.com | 2022-07-28 03:48:11 | RE: Support logical replication of DDLs |