Re: Improve description of XLOG_RUNNING_XACTS

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: Improve description of XLOG_RUNNING_XACTS
Дата
Msg-id CAD21AoAUHNf6Mf=n9pesXVqW8JgtKyDPSuVEEo5DFeFjCOvjbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Improve description of XLOG_RUNNING_XACTS  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Ответы Re: Improve description of XLOG_RUNNING_XACTS  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Список pgsql-hackers
On Thu, Jul 21, 2022 at 10:13 PM Ashutosh Bapat
<ashutosh.bapat.oss@gmail.com> wrote:
>
> Hi
>
> On Thu, Jul 21, 2022 at 6:44 AM Masahiko Sawada <sawada.mshk@gmail.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/

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: [Commitfest 2022-07] Patch Triage: Waiting on Author
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: fairywren hung in pg_basebackup tests