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
Дата
в 08:26:19
Msg-id
OSBPR01MB2552BAD6709854360A1C8957F5E62@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 Peter,

Thanks for reviewing! The patch will be posted in the upcoming post.

> ======
> src/backend/access/transam/twophase.c
> 
> 1. IsTwoPhaseTransactionGidForSubid
> 
> +/*
> + * IsTwoPhaseTransactionGidForSubid
> + * Check whether the given GID is formed by TwoPhaseTransactionGid.
> + */
> +static bool
> +IsTwoPhaseTransactionGidForSubid(Oid subid, char *gid)
> 
> I think the function comment should mention something about 'subid'.
> 
> SUGGESTION
> Check whether the given GID (as formed by TwoPhaseTransactionGid) is
> for the specified 'subid'.

Fixed.

> src/backend/commands/subscriptioncmds.c
> 
> 2. AlterSubscription
> 
> + if (!opts.twophase &&
> + form->subtwophasestate == LOGICALREP_TWOPHASE_STATE_ENABLED
> &&
> + LookupGXactBySubid(subid))
> + /* Add error message */
> + ereport(ERROR,
> + (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
> + errmsg("cannot disable two_phase when uncommitted prepared
> transactions present"),
> + errhint("Resolve these transactions and try again")));
> 
> The comment "/* Add error message */" seems unnecessary.

Yeah, this was an internal flag. Removed.

Best Regards,
Hayato Kuroda
FUJITSU LIMITED
https://www.fujitsu.com/ 

В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
Сообщение: Re: Weird test mixup
От: Hayato Kuroda (Fujitsu)
Дата:
FAQ