Re: pg_upgrade and logical replication

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: vignesh C <vignesh21(at)gmail(dot)com>
Cc: Peter Smith <smithpb2250(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Julien Rouhaud <rjuju123(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Subject: Re: pg_upgrade and logical replication
Date: 2023-11-19 23:56:58
Message-ID: ZVqgytKDQwmOgInW@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Nov 19, 2023 at 06:56:05AM +0530, vignesh C wrote:
> On Sun, 19 Nov 2023 at 06:52, vignesh C <vignesh21(at)gmail(dot)com> wrote:
>> On Fri, 10 Nov 2023 at 19:26, vignesh C <vignesh21(at)gmail(dot)com> wrote:
>>> I will analyze more on this and post the analysis in the subsequent mail.
>>
>> I analyzed further and felt that retaining subscription oid would be
>> cleaner as subscription/subscription_rel/replication_origin/replication_origin_status
>> all of these will be using the same oid as earlier and also probably
>> help in supporting upgrade of subscription in more scenarios later.
>> Here is a patch to handle the same.
>
> Sorry I had attached the older patch, here is the correct updated one.

Thanks for digging into that. I think that we should consider that
once the main patch is merged and stable in the tree for v17 to get a
more consistent experience. Shouldn't this include a test in the new
TAP test for the upgrade of subscriptions? It should be as simple as
cross-checking the OIDs of the subscriptions before and after the
upgrade.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2023-11-20 00:00:11 Re: On non-Windows, hard depend on uselocale(3)
Previous Message Thomas Munro 2023-11-19 23:33:07 Re: Windows default locale vs initdb