| From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
|---|---|
| To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
| Cc: | Zhijie Hou <houzhijie22(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(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>, shveta malik <shvetamalik(at)gmail(dot)com> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-11-27 03:45:51 |
| Message-ID: | CAJpy0uAsy=JWs7jyootqZFBqkRwYwLfjxDZM2i9-WR5exdp1Vg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Nov 26, 2026 at 4:58 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Thu, Nov 26, 2026 at 1:21 PM Zhijie Hou <houzhijie22(at)gmail(dot)com> wrote:
> >
> > I reviewed 0002 and have few comments:
> >
> > 1.
> >
> > The ACLs on the pg_conflict schema are not preserved during upgrade, so
> > a user whose access to pg_conflict.* was revoked can unexpectedly access
> > it again after upgrading. I think we shall update
> > selectDumpableNamespace() so that pg_conflict falls into the pg_catalog
> > branch to preserve them.
> >
>
> I am wondering why we need this special handling in
> selectDumpableTable at all for CLT? Can't the following handles both
> your and current cases by having a branch as follows in
> selectDumpableNamespace()
> else if (strcmp(nsinfo->dobj.name, “pg_conflict”) == 0)
> {
> nsinfo->dobj.dump = DUMP_COMPONENT_ACL;
> nsinfo->dobj.dump_contains = fout->dopt->binary_upgrade ?
> DUMP_COMPONENT_ALL : DUMP_COMPONENT_NONE;
> }
I don't think this check will suffice. It may end up dumping CLT again
when 'no-sub' option is given or when -t/-e is given. We need other
checks too, if not in selectDumpableTable, then perhaps in
selectDumpableNamespace.
> Will it be better if we split this patch to preserve subid across
> upgrade into a separate patch as that would be required for commit_ts
> upgrade as well? And start a separate thread to preserve CLT during
> upgrade (that thread can contain both preserve subid patch and CLT vs.
> dump/upgrade handling).
+1
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2026-11-27 03:51:15 | Re: pg_upgrade's get_rel_infos_query() query can sometimes be slow |
| Previous Message | wenhui qiu | 2026-11-27 03:41:22 | Re: Simplify the uniqueness proof for self-join elimination |