Re: [BUG] Logical replication failure "ERROR: could not map filenode "base/13237/442428" to relation OID" with catalog modifying txns
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: "shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>,
Kyotaro Horiguchi <horikyota.ntt@gmail.com>, "Drouvot, Bertrand" <bdrouvot@amazon.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, "Oh,
Mike" <minsoo@amazon.com>
Date: 2022-08-03T04:06:25Z
Lists: pgsql-hackers
On Tue, Aug 2, 2022 at 5:31 PM shiy.fnst@fujitsu.com <shiy.fnst@fujitsu.com> wrote: > > On Mon, Aug 1, 2022 10:31 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > > On Mon, Aug 1, 2022 at 7:46 AM Masahiko Sawada > > <sawada.mshk@gmail.com> wrote: > > > > > > On Fri, Jul 29, 2022 at 3:45 PM Amit Kapila <amit.kapila16@gmail.com> > > wrote: > > > > > > > > > > I've attached updated patches for all branches. Please review them. > > > > > > > Thanks, the patches look mostly good to me. I have made minor edits by > > removing 'likely' from a few places as those don't seem to be adding > > much value, changed comments at a few places, and was getting > > compilation in error in v11/10 (snapbuild.c:2111:3: error: ‘for’ loop > > initial declarations are only allowed in C99 mode) which I have fixed. > > See attached, unless there are major comments/suggestions, I am > > planning to push this day after tomorrow (by Wednesday) after another > > pass. > > > > Thanks for updating the patch. > > Here are some minor comments: > > 1. > patches for REL10 ~ REL13: > + * Mark the transaction as containing catalog changes. In addition, if the > + * given xid is in the list of the initial running xacts, we mark the > + * its subtransactions as well. See comments for NInitialRunningXacts and > + * InitialRunningXacts for additional info. > > "mark the its subtransactions" > -> > "mark its subtransactions" > > 2. > patches for REL10 ~ REL15: > In the comment in catalog_change_snapshot.spec, maybe we can use "RUNNING_XACTS" > instead of "RUNNING_XACT" "XACT_RUNNING", same as the patch for master branch. > Thank you for the comments! These have been incorporated in the latest version v12 patch I just submitted. Regards, -- Masahiko Sawada EDB: https://www.enterprisedb.com/
Commits
-
Fix the incorrect assertion introduced in commit 7f13ac8123.
- d2169c998553 16.0 landed
-
Fix catalog lookup with the wrong snapshot during logical decoding.
- 7f13ac812313 16.0 landed
- 272248a0c1b1 15.0 landed
- 68dcce247f1a 14.6 landed
- 547b963683e3 13.9 landed
- 794460783125 12.13 landed
- e721123b7a0c 11.18 landed
- bf0718c137c4 10.23 landed
-
Clean up assorted failures under clang's -fsanitize=undefined checks.
- 46ab07ffda9d 15.0 cited