pgsql: Fix corruption of 2PC recovery with subxacts

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix corruption of 2PC recovery with subxacts
Date: 2016-09-09 12:12:34
Message-ID: E1biKfa-0001AE-CK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Fix corruption of 2PC recovery with subxacts

Reading 2PC state files during recovery was borked, causing corruptions during
recovery. Effect limited to servers with 2PC, subtransactions and
recovery/replication.

Stas Kelvich, reviewed by Michael Paquier and Pavan Deolasee

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ec253de1fd2e6002122de80815ac5b963af8277c

Modified Files
--------------
src/backend/access/transam/twophase.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2016-09-09 12:12:41 pgsql: Fix corruption of 2PC recovery with subxacts
Previous Message Simon Riggs 2016-09-09 10:47:51 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2016-09-09 12:13:55 Re: [COMMITTERS] pgsql: Fix corruption of 2PC recovery with subxacts
Previous Message Heikki Linnakangas 2016-09-09 12:01:06 Re: Tuplesort merge pre-reading