Re: Speedup twophase transactions
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Nikhil Sontakke <nikhils@2ndquadrant.com>
Cc: David Steele <david@pgmasters.net>,
Stas Kelvich <s.kelvich@postgrespro.ru>, Simon Riggs <simon@2ndquadrant.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>,
Jesper Pedersen <jesper.pedersen@redhat.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2017-03-28T06:03:40Z
Lists: pgsql-hackers
On Tue, Mar 28, 2017 at 2:10 PM, Nikhil Sontakke <nikhils@2ndquadrant.com> wrote: > The latest patch looks good. By now doing a single scan of shmem two phase > data, we have removed the double loops in all the affected functions which > is good. Yup. > My only question is if the added call to restoreTwoPhaseData() is good > enough to handle all the 3 functions PrescanPreparedTransactions(), > StandbyRecoverPreparedTransactions() and RecoverPreparedTransactions() > appropriately? It looks as if it does, but we need to be doubly sure.. Yeah, I have spent a bit of time thinking about that. But as restoreTwoPhaseData() is basically what those other three routines do but at an earlier stage I cannot see a problem with it. I don't discard being in shortage of imagination of course. > PFA, revised patch with a very minor typo fix and rebase against latest > master. The test cases pass as needed. Thanks! > Oh, btw, while running TAP tests, I got a few errors in unrelated tests. > [...] > Again, not related to this recovery code path, but not sure if others see > this as well. Definitely not related to this patch, and I am unable to see anything like that. Even spurious errors merit attention, but even by running those tests multiple times daily I have not seen anything like that. That's mainly on OSX 10.11 though. I don't have anything else to say about this patch, so should we mark that as ready for committer? There are still a couple of days left until the end of the CF, and quite a lot has happened, so this could get on time into PG10. -- Michael
Commits
-
Speedup 2PC recovery by skipping two phase state files in normal path
- 728bd991c3c4 10.0 landed
-
Add tests for two-phase commit
- 30820982b295 10.0 landed
-
Improve grammar of message about two-phase state files.
- 38c363adf497 10.0 landed
-
Speedup 2PC by skipping two phase state files in normal path
- 978b2f65aa12 9.6.0 cited