RE: Slow catchup of 2PC (twophase) transactions on replica in LR
От
Hayato Kuroda (Fujitsu)
Тема
RE: Slow catchup of 2PC (twophase) transactions on replica in LR
Дата
Msg-id
OSBPR01MB25527C8A6257443FAE7391C3F5DF2@OSBPR01MB2552.jpnprd01.prod.outlook.com
Ответ на
Список
Дерево обсуждения
Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Heikki Linnakangas <hlinnaka@iki.fi>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Ajin Cherian <itsajin@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Ajin Cherian <itsajin@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Ajin Cherian <itsajin@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Vitaly Davydov" <v.davydov@postgrespro.ru>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Ajin Cherian <itsajin@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Ajin Cherian <itsajin@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Vitaly Davydov" <v.davydov@postgrespro.ru>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Tom Lane <tgl@sss.pgh.pa.us>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR vignesh C <vignesh21@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR vignesh C <vignesh21@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Amit Kapila <amit.kapila16@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Peter Smith <smithpb2250@gmail.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
RE: Slow catchup of 2PC (twophase) transactions on replica in LR "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Ajin Cherian <itsajin@gmail.com>
Re: Slow catchup of 2PC (twophase) transactions on replica in LR Давыдов Виталий <v.davydov@postgrespro.ru>
Dear Amit, Thanks for giving comments. I hope all comments have been addressed. PSA new version. > > Actually, earlier version (-v3) did not have a mechanism but they sometimes got > > assertion failures in maybe_reread_subscription(). This was because the > survived > > workers read pg_subscription catalog and failed below assertion: > > > > ``` > > /* two-phase cannot be altered while the worker exists */ > > Assert(newsub->twophasestate == > MySubscription->twophasestate); > > ``` > > > > But that is not a good reason for this operation to stop workers > first. Instead, we should prohibit this operation if any worker is > present. The reason is that there is always a chance that if any > worker is alive, it can prepare a new transaction after we have > checked for the presence of any prepared transactions. I used the function because it internally waits until all workers are exited. But OK, I modified like you suggested (logicalrep_workers_find() is used). Best Regards, Hayato Kuroda FUJITSU LIMITED https://www.fujitsu.com/
В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Amit Kapila
Дата: