| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> |
| Cc: | vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Preserve conflict log table during upgrade |
| Date: | 2026-12-01 08:28:29 |
| Message-ID: | CAA4eK1+FeA7xcfcmSpdRs3=T=-3FZk9jfL9yJRr_e1co248h4A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Dec 1, 2026 at 11:52 AM Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> wrote:
>
> On Mon, 30 Nov 2026 at 16:07, vignesh C <vignesh21(at)gmail(dot)com> wrote:
> >
> > Here is a rebased version, the v3 version patch also addresses Ajin's
> > comments from [1] and Kuroda-san's comments from [2].
>
> I noticed that we can create views on Conflict log tables.
> For normal pg_dump, these views are dumped before the CREATE
> SUBSCRIPTION command.
> So, when we try to restore from such dumps, it can error out with
> 'relation "pg_conflict.pg_conflict_log_16385" does not exist'
> Is this behaviour expected?
>
> Even if we correct the ordering, the subscription oid might not be
> preserved in pg_dump. And the same error can occur.
> Maybe we should not dump such views in non binary-upgrade pg_dump?
>
Yes, I also think so and I think the behavior should be the same for
toast tables, you can check once. OTOH, I feel we should document
similar to the way we document in -t switch ( It will not dump the
contents of views or materialized views ....)
--
With Regards,
Amit Kapila.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Cagri Biroglu | 2026-12-01 08:37:55 | Re: Per-table resync for logical replication subscriptions |
| Previous Message | Zsolt Parragi | 2026-12-01 08:16:24 | Re: Reapply graceful socket shutdown on Windows (revert 29992a6a509) |