pgsql: Rework handling of subtransactions in 2PC recovery

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rework handling of subtransactions in 2PC recovery
Date: 2017-04-27 12:43:03
Message-ID: E1d3ilD-0006No-FB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rework handling of subtransactions in 2PC recovery

The bug fixed by 0874d4f3e183757ba15a4b3f3bf563e0393dd9c2
caused us to question and rework the handling of
subtransactions in 2PC during and at end of recovery.
Patch adds checks and tests to ensure no further bugs.

This effectively removes the temporary measure put in place
by 546c13e11b29a5408b9d6a6e3cca301380b47f7f.

Author: Simon Riggs
Reviewed-by: Tom Lane, Michael Paquier
Discussion: http://postgr.es/m/CANP8+j+vvXmruL_i2buvdhMeVv5TQu0Hm2+C5N+kdVwHJuor8w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/49e928154978da2a5976628588fc545b726ad84a

Modified Files
--------------
src/backend/access/transam/subtrans.c | 32 +++++++++++------
src/backend/access/transam/twophase.c | 67 +++++++++++++++--------------------
src/backend/access/transam/xact.c | 2 +-
src/backend/access/transam/xlog.c | 4 +--
src/backend/storage/ipc/procarray.c | 2 +-
src/include/access/subtrans.h | 2 +-
src/include/access/twophase.h | 2 +-
7 files changed, 56 insertions(+), 55 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2017-04-27 14:17:19 pgsql: doc PG10rel: adjust hash index commits and add parallel subquery
Previous Message Michael Paquier 2017-04-27 12:41:47 Re: pgsql: Additional tests for subtransactions in recovery