Aug 2021

1 commit
Add prepare API support for streaming transactions in logical replication.
4 Aug 2021Amit Kapilamaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1Also in: Re: [HACKERS] logical decoding of two-phase transactions (landed as posted)

Jun - Jul 2021

2 commits
Add support for prepared transactions to built-in logical replication.
14 Jul 2021Amit Kapilamaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1Also in: Logical Replication vs. 2PC
LLM analysis, 89% surepart of a posted patchsetsignificant changesfrom patchset #1511 of 6 reviewers saw the final version

The pgoutput callbacks, prepare protocol routines, apply-worker handlers, and LookupGXact descend from the pgoutput component of #151, with substantial redesign of protocol messages, subscriber GIDs, and subscription/table-sync enablement. The other linked thread, thread #43862, has no attached patches supplying a newer source.

  • Amit Kapilasaw the final versiontrailerAmit committed the final implementation, although no review messages by him appear in this thread.
  • Sawada Masahikono review foundtrailerHis testing in #83 and #85 predates the built-in pgoutput/subscriber component, and no review of that component appears here.
  • Vignesh Cno review foundtrailerNo review activity by Vignesh C appears in this thread.
  • Dilip Kumarno review foundtrailerNo review activity by Dilip Kumar appears in this thread.
  • Takamichi Osumino review foundtrailerNo review activity by Takamichi Osumi appears in this thread.
  • Greg Nancarrowno review foundtrailerNo review activity by Greg Nancarrow appears in this thread.
Allow enabling two-phase option via replication protocol.
30 Jun 2021Amit Kapilamaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1Also in: Decoding of two-phase xacts missing from CREATE_REPLICATION_SLOT command (modified before commit)

Dec 2020 - Jan 2021

3 commits
Test decoding of two-phase transactions during the build of a consistent snapshot.
5 Jan 2021Amit Kapilamaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1Also in: Re: [HACKERS] logical decoding of two-phase transactions (modified before commit)
Allow decoding at prepare time in ReorderBuffer.
4 Jan 2021Amit Kapilamaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1Also in: Re: [HACKERS] logical decoding of two-phase transactions (part of a posted patchset)
Extend the output plugin API to allow decoding of prepared xacts.
30 Dec 2020Amit Kapilamaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1Also in: Re: [HACKERS] logical decoding of two-phase transactions (part of a posted patchset)

Jan 2020

1 commit
Clean up representation of flags in struct ReorderBufferTXN
10 Jan 2020Alvaro Herreramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #2143 of 3 reviewers saw the final version

Commits the first component of #214, converting three ReorderBufferTXN booleans into flags. Changes are limited to macro parentheses and boolean results requested in #219, bits32 typing, comments, and adaptation of a newer spill-statistics reference.

  • Andres Freundsaw the final versionLLM analysis, 95% sureHis objection to generic txn_* names in #119 produced the RB-prefixed names recorded in #122, with only light subsequent changes to this isolated cleanup.
  • Simon Riggssaw the final versionLLM analysis, 99% sureHe reviewed the flags component in #128 and requested rbtxn_is_known_subxact and RBTXN_IS_SERIALIZED, both retained in the committed implementation.
  • Alvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 7 commits

Author
Ajin Cherian6
Amit Kapila based on previous work by Nikhil Sontakke3
Stas Kelvich3
Peter Smith2
Nikhil Sontakke1
Reviewer
Amit Kapila6
Dilip Kumar3
Masahiko Sawada3
vignesh C3
Greg Nancarrow2
Peter Smith2
Alvaro Herreracommitter1
Arseny Sher1
Jeff Davis1
osumi.takamichi@fujitsu.com1
Tested by
tanghy.fnst@fujitsu.com2
osumi.takamichi@fujitsu.com1
Committer
Amit Kapila6
Alvaro Herrera1