Allow streaming the changes after speculative aborts.
authorAmit Kapila <akapila@postgresql.org>
Wed, 30 Jun 2021 04:07:59 +0000 (09:37 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 30 Jun 2021 04:07:59 +0000 (09:37 +0530)
commit52d26d560e272613c501e35b24fbf8d710de4b8a
tree75e173031b2b5f4ca87102874437839fed1c6fcd
parentcda03cfed6b8bd5f64567bccbc9578fba035691e
Allow streaming the changes after speculative aborts.

Until now, we didn't allow to stream the changes in logical replication
till we receive speculative confirm or the next DML change record after
speculative inserts. The reason was that we never use to process
speculative aborts but after commit 4daa140a2f it is possible to process
them so we can allow streaming once we receive speculative abort after
speculative insertion.

We decided to backpatch to 14 where the feature for streaming in progress
transactions have been introduced as this is a minor change and makes that
functionality better.

Author: Amit Kapila
Reviewed-By: Dilip Kumar
Backpatch-through: 14
Discussion: https://postgr.es/m/CAA4eK1KdqmTCtrBR6oFfGELrLLbDLDedL6zACcsUOQuTJBj1vw@mail.gmail.com
src/backend/replication/logical/reorderbuffer.c