On Thu, Nov 26, 2026 at 4:58 PM Amit Kapila <[email protected]> wrote: > > On Thu, Nov 26, 2026 at 1:21 PM Zhijie Hou <[email protected]> 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
