pgsql: Update the docs and comments for decoding of prepared xacts.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Update the docs and comments for decoding of prepared xacts.
Date: 2021-03-01 02:46:33
Message-ID: E1lGYZt-00088y-93@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b4e3dc7fd420cdc2287f30a638c4affd071f01b2

Modified Files
--------------
doc/src/sgml/logicaldecoding.sgml | 24 ++++++++++++++++++++++++
src/backend/replication/logical/decode.c | 14 ++++++++++++++
2 files changed, 38 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-03-01 03:00:16 pgsql: Update docs of logical replication for commit ce0fdbfe97.
Previous Message Thomas Munro 2021-03-01 01:26:45 pgsql: Use signalfd(2) for epoll latches.