Re: Potential data loss due to race condition during logical replication slot creation
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, "Callahan,
Drew" <callaan@amazon.com>, "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2024-07-10T02:21:48Z
Lists: pgsql-bugs
Attachments
- master_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
- REL17_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
- REL15_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
- REL14_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
- REL16_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
- REL13_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
- REL12_v3-0001-Fix-possibility-of-logical-decoding-partial-trans.patch (application/octet-stream) patch v3-0001
On Wed, Jul 10, 2024 at 10:15 AM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > If we go this approach, > I think we should check if the flag is set before finding the start > point. Checking if the flag is set in DecodingContextFindStartpoint() requires introducing a new function in snapbuild.c and the function would be used only in an Assertion. So the attached updated patch doesn't introduce such a function. If it's really worth it, I can add it, but I think we can live without that. Overall I think the patches are in good shape, so I'm going to push them tomorrow, barring any objections and further comments. Regards, -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
Commits
-
Fix possibility of logical decoding partial transaction changes.
- bb19b70081e2 18.0 landed
- 068674f4ab44 17.0 landed
- 2f3304ce133f 16.4 landed
- aee8c2b95492 15.8 landed
- f7d3caf9ddbf 14.13 landed
- cf2c69ec5a5b 13.16 landed
- 1b370758770c 12.20 landed