Re: [PATCH] Preserve replication origin OIDs in pg_upgrade
В списке pgsql-hackers по дате отправления:
| От | Ajin Cherian |
|---|---|
| Тема | Re: [PATCH] Preserve replication origin OIDs in pg_upgrade |
| Дата | |
| Msg-id | CAFPTHDaNLRqPAda1RUDVfSDH7eLTaONv0UEmc9H5sdMW1Li2Bg@mail.gmail.com обсуждение |
| Ответ на | Re: [PATCH] Preserve replication origin OIDs in pg_upgrade (vignesh C <vignesh21@gmail.com>) |
| Список | pgsql-hackers |
On Thu, Apr 30, 2026 at 4:52 PM vignesh C <vignesh21@gmail.com> wrote: > > On Wed, 29 Apr 2026 at 14:11, Hayato Kuroda (Fujitsu) > <kuroda.hayato@fujitsu.com> wrote: > > > > Dear Ajin, > > > > > Sequence of Events During Upgrade > > > > > > 1. pg_dumpall dumps all non-subscription replication origins from the > > > old cluster with their roidents and LSN positions. > > > 2. pg_dump dumps each subscription, but now records the old roident > > > alongside the subscription info. > > > 3. During restore, pg_dumpall's output recreates non-subscription > > > origins on the new cluster with their original roidents via > > > binary_upgrade_create_replication_origin(). > > > > To confirm, why do we have to handle separately for subscription-associated > > origins? I'm thinking it's not needed if the subscription's OID is preserved > > during the upgrade. > > +1 to preserve the subscription OID. This should make preserving > replication origin easier. > > > I checked the old thread to preserve it [1], but it could not be accepted because > > there are no strong motivations. But I feel this is the good reason to do so now. > > Here is a rebased version of the patch. Thanks Vignesh for the patch. I have used your patch as 0001 and created mine on top of that as 0002. Like Kuroda-san said, with your patch, I no longer need to have special handling of subscription replication origins when pg_dumpall creates all replication origins on the new cluster as now the name of origin is also guaranteed to be the same because the replication origin name is created using the oid of the subscription which is now the same because of the the changes in patch 0001. Here's v3 with the updated changes. regards, Ajin Cherian Fujitsu Australia
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера