| From: | Ajin Cherian <itsajin(at)gmail(dot)com> |
|---|---|
| To: | vignesh C <vignesh21(at)gmail(dot)com> |
| Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Preserve conflict log table during upgrade |
| Date: | 2026-11-30 04:51:27 |
| Message-ID: | CAFPTHDZkvegyxt_P=tYqjKmUNHhRcGcgvQ-rE7oFr=x2qCPtxQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 27, 2026 at 11:56 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
>
> On Fri, 27 Nov 2026 at 11:49, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> >
>
> The attached v2 version patch has the changes for the same.
>
Hi Vignesh,
Thanks for the updated patches. I applied v2 on HEAD and ran the
pg_upgrade, pg_dump and regression tests; all passed. I also tried a
few upgrade scenarios by hand: a subscription owned by a
non-superuser, grants and comments on the conflict log table,
subscriptions in two databases upgraded with --jobs 2, and the --copy,
--link and --swap modes. In all of them the subscription OID, the
conflict log table's OID, owner and ACL, its rows, and the replication
origin names were the same after the upgrade. The apply worker kept
logging new conflicts into the upgraded table, and DROP SUBSCRIPTION
still dropped it. One comment:
1.
In 004_subscription.pl, the test checks the OIDs, privileges and
comments, but not that the conflict data itself survives, which is the
main point of preserving the table. Could we add:
a) a check that rows in the conflict log table before the upgrade are
still there afterwards (for example, produce a delete_missing conflict
on the old subscriber and compare the rows);
Regards,
Ajin Cherian
Fujitsu Australia
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2026-11-30 05:04:15 | Re: update_deleted lookup assumes heap tuple slots |
| Previous Message | Ashutosh Bapat | 2026-11-30 04:30:00 | Re: Assertion failure in get_matching_part_pairs() with pruned partitions |