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: Jeremy Schneider <schneider@ardentperf.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, "Drouvot,
Bertrand" <bdrouvot@amazon.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, "Oh,
Mike" <minsoo@amazon.com>
Date: 2021-10-14T01:39:07Z
Lists: pgsql-hackers
On Wed, Oct 13, 2021 at 7:55 AM Jeremy Schneider <schneider@ardentperf.com> wrote: > > On 10/10/21 23:27, Masahiko Sawada wrote: > > > > After more thought, given DDLs are not likely to happen than DML in > > practice, ... > > I haven't looked closely at the patch, but I'd be careful about > workloads where people create and drop "temporary tables". I've seen > this pattern used a few times, especially by developers who came from a > SQL server background, for some reason. True. But since the snapshot builder is designed on the same assumption it would not be problematic. It keeps track of the committed catalog modifying transaction instead of keeping track of all running transactions. See the header comment of snapbuild.c 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