Re: "unexpected duplicate for tablespace" problem in logical replication
wangsh.fnst@fujitsu.com <wangsh.fnst@fujitsu.com>
From: "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
To: "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>, "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2022-04-11T10:24:26Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Ignore temporary relations in RelidByRelfilenumber()
- 30b32b08c9e9 13.23 landed
- 222130edd81f 14.20 landed
- ec471008c8fc 15.15 landed
- ab874faaa1f3 16.11 landed
- dcdc95cb4d4c 17.7 landed
- 86831952ad60 18.0 landed
- ef03ea01fe47 19 (unreleased) landed
Attachments
- v2-0001-Check-the-duplicated-relfilenode-when-create-tabl.patch (text/x-patch) patch v2-0001
Hi, Osumi-san, Thank you for your comment. On 4/11/22 15:40, Osumi, Takamichi/大墨 昂道 wrote: > (1) Name of isRelNodeCollision changed. > (2) Remove curly brackets for one sentence changed. > (3) variables of isRelNodeCollision changed. > (4) Having Assert in isRelNodeCollision added. > (5) argument name of isRelNodeCollision changed. BTW, I also change the parameter from null to SnapshotAny scandesc = systable_beginscan(pg_class, ClassTblspcRelfilenodeIndexId, - true, NULL, 2, skey); + true, SnapshotAny, 2, skey); I'm not sure, but I think SnapshotAny is more suitable after reading the source(comment) in function GetNewOidWithIndex(). Please see the attachment Regards, Shenhao Wang