]> granicus.if.org Git - postgresql/commit
Rework handling of subtransactions in 2PC recovery
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 27 Apr 2017 12:41:22 +0000 (14:41 +0200)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 27 Apr 2017 12:41:22 +0000 (14:41 +0200)
commit49e928154978da2a5976628588fc545b726ad84a
treec3d75c20b8a3ed27fc7b6ab66cd751642ac01d57
parent0352c15e5ab4f70c3ab2ac1d48d9f38a5dd11786
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
src/backend/access/transam/subtrans.c
src/backend/access/transam/twophase.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/storage/ipc/procarray.c
src/include/access/subtrans.h
src/include/access/twophase.h