Re: using an end-of-recovery record in all cases
От
Kyotaro Horiguchi
Тема
Re: using an end-of-recovery record in all cases
Дата
Msg-id
20210903.135253.1325195337077676977.horikyota.ntt@gmail.com
Ответ на
Re: using an end-of-recovery record in all cases (Robert Haas)
Список
Дерево обсуждения
needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
Re: needless complexity in StartupXLOG Stephen Frost <sfrost@snowman.net>
Re: needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
Re: needless complexity in StartupXLOG Stephen Frost <sfrost@snowman.net>
Re: needless complexity in StartupXLOG Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
Re: needless complexity in StartupXLOG Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
Re: needless complexity in StartupXLOG Justin Pryzby <pryzby@telsasoft.com>
Re: needless complexity in StartupXLOG Andres Freund <andres@anarazel.de>
Re: needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
using an end-of-recovery record in all cases Robert Haas <robertmhaas@gmail.com>
Re: using an end-of-recovery record in all cases Robert Haas <robertmhaas@gmail.com>
Re: using an end-of-recovery record in all cases Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: using an end-of-recovery record in all cases Robert Haas <robertmhaas@gmail.com>
Re: using an end-of-recovery record in all cases Amul Sul <sulamul@gmail.com>
Re: using an end-of-recovery record in all cases Amit Kapila <amit.kapila16@gmail.com>
Re: needless complexity in StartupXLOG Julien Rouhaud <rjuju123@gmail.com>
Re: needless complexity in StartupXLOG Andres Freund <andres@anarazel.de>
Re: needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
Re: needless complexity in StartupXLOG Amul Sul <sulamul@gmail.com>
Re: needless complexity in StartupXLOG Robert Haas <robertmhaas@gmail.com>
At Thu, 2 Sep 2021 11:30:59 -0400, Robert Haas wrote in > On Mon, Aug 9, 2021 at 3:00 PM Robert Haas wrote: > > I decided to try writing a patch to use an end-of-recovery record > > rather than a checkpoint record in all cases. > > > > The first problem I hit was that GetRunningTransactionData() does > > Assert(TransactionIdIsNormal(CurrentRunningXacts->latestCompletedXid)). > > > > Unfortunately we can't just relax the assertion, because the > > XLOG_RUNNING_XACTS record will eventually be handed to > > ProcArrayApplyRecoveryInfo() for processing ... and that function > > contains a matching assertion which would in turn fail. It in turn > > passes the value to MaintainLatestCompletedXidRecovery() which > > contains yet another matching assertion, so the restriction to normal > > XIDs here looks pretty deliberate. There are no comments, though, so > > the reader is left to guess why. I see one problem: > > MaintainLatestCompletedXidRecovery uses FullXidRelativeTo, which > > expects a normal XID. Perhaps it's best to just dodge the entire issue > > by skipping LogStandbySnapshot() if latestCompletedXid happens to be > > 2, but that feels like a hack, because AFAICS the real problem is that > > StartupXLog() doesn't agree with the rest of the code on whether 2 is > > a legal case, and maybe we ought to be storing a value that doesn't > > need to be computed via TransactionIdRetreat(). > > Anyone have any thoughts about this? I tried to reproduce this but just replacing the end-of-recovery checkpoint request with issuing an end-of-recovery record didn't cause make check-workd fail for me. Do you have an idea of any other requirement to cause that? regards. -- Kyotaro Horiguchi NTT Open Source Software Center
В списке pgsql-hackers по дате отправления
От: tanghy.fnst@fujitsu.com
Дата: