Update the docs and comments for decoding of prepared xacts.
authorAmit Kapila <akapila@postgresql.org>
Mon, 1 Mar 2021 02:44:33 +0000 (08:14 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 1 Mar 2021 02:44:33 +0000 (08:14 +0530)
commitb4e3dc7fd420cdc2287f30a638c4affd071f01b2
tree9b16c0843a81482506e2e4ce4afca9d06ce610d9
parent6148656a0be1c6245fbcfcbbeb87541f1b173162
Update the docs and comments for decoding of prepared xacts.

Commit a271a1b50e introduced decoding at prepare time in ReorderBuffer.
This can lead to deadlock for out-of-core logical replication solutions
that uses this feature to build distributed 2PC in case such transactions
lock [user] catalog tables exclusively. They need to inform users to not
have locks on catalog tables (via explicit LOCK command) in such
transactions.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/20210222222847.tpnb6eg3yiykzpky@alap3.anarazel.de
doc/src/sgml/logicaldecoding.sgml
src/backend/replication/logical/decode.c