pgsql: Ensure to send a prepare after we detect concurrent abort during

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Ensure to send a prepare after we detect concurrent abort during
Дата
Msg-id E1lRnPM-00064S-5N@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Ensure to send a prepare after we detect concurrent abort during decoding.

It is possible that while decoding a prepared transaction, it gets aborted
concurrently via a ROLLBACK PREPARED command. In that case, we were
skipping all the changes and directly sending Rollback Prepared when we
find the same in WAL. However, the downstream has no idea of the GID of
such a transaction. So, ensure to send prepare even when a concurrent
abort is detected.

Author: Ajin Cherian
Reviewed-by: Markus Wanner, Amit Kapila
Discussion: https://postgr.es/m/f82133c6-6055-b400-7922-97dae9f2b50b@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4778826532a62fd6e4d3fdeef9532c943604c730

Modified Files
--------------
doc/src/sgml/logicaldecoding.sgml               | 15 +++++++++------
src/backend/replication/logical/reorderbuffer.c |  8 ++++++++
2 files changed, 17 insertions(+), 6 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: pgsql: Extended statistics on expressions
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: doc: Clarify use of ACCESS EXCLUSIVE lock in various sections