Re: StandbyRecoverPreparedTransactions recovers subtrans links incorrectly
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-04-23T16:17:12Z
Lists: pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes: >> Also, when I fix that, it gets further but still crashes at the same >> Assert in SubTransSetParent. The proximate cause this time seems to be >> that RecoverPreparedTransactions's calculation of overwriteOK is wrong: >> it's computing that as "false", but in reality the subtrans link in >> question has already been set. > Not sure about that, investigating. As a quick hack, I just hotwired RecoverPreparedTransactions to set overwriteOK = true always, and with that and the SubTransSetParent argument-order fix, HEAD passes the recovery tests. Maybe we can be smarter than that, but this might be a good short-term fix to get the buildfarm green again. regards, tom lane
Commits
-
Rework handling of subtransactions in 2PC recovery
- 49e928154978 10.0 landed
-
Fix order of arguments to SubTransSetParent().
- f5885488dacb 9.6.3 landed
- 0874d4f3e183 10.0 landed
- 952e33b05275 9.2.21 landed
- a66e01bbcc88 9.5.7 landed
- 8565808733ec 9.3.17 landed
- 2e14541c4992 9.4.12 landed
-
Speedup 2PC recovery by skipping two phase state files in normal path
- 728bd991c3c4 10.0 cited