| From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
|---|---|
| To: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
| Cc: | Zhijie Hou <houzhijie22(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, saurabh singh <saurabh(dot)singh214(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Smith <smithpb2250(at)gmail(dot)com>, shveta malik <shvetamalik(at)gmail(dot)com> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-11-26 09:54:48 |
| Message-ID: | CAJpy0uAErjZS4Od4RgEW6nWwtzbFJ0KRFiZPFVrkyxjWpu-e5g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Nov 26, 2026 at 2:27 PM Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> Hi,
>
> Here is a comment for v97-0002.
>
> I found that conflict log table could be dumped with pg_dump --binary-upgrade --no-subscription,
> nevertheless the subscription cannot be dumped with them. This is because getSubscriptions()
> can be skipped by dopt->no_subscriptions but selectDumpableTable() does not.
> Maybe we should also check the setting here?
+1.
I see a similar problem with the '--binary-upgrade -n public' option too:
--The subscription is skipped, because it isn't in schema public.
--The CLT is still dumped, because the patch's CLT branch says to dump
it in binary-upgrade mode
The same problem exists with '-t .. --binary-upgrade'. I think there
could be more such combinations too.
I think this check in selectDumpableTable is not enough, it needs more
checks like: !dopt->no_subscriptions && dopt->include_everything
+ if (dopt->binary_upgrade)
+ tbinfo->dobj.dump = DUMP_COMPONENT_DEFINITION | DUMP_COMPONENT_ACL |
+
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-11-26 10:07:57 | Re: Add malloc attribute to memory allocation functions |
| Previous Message | Zsolt Parragi | 2026-11-26 09:41:00 | Re: test: avoid redundant standby catchup in 049_wait_for_lsn |