Re: Speedup twophase transactions - Mailing list pgsql-hackers

From Stas Kelvich
Subject Re: Speedup twophase transactions
Date
Msg-id EDEE5B08-752B-42F9-A243-732599BE2EC4@postgrespro.ru
Whole thread Raw
In response to Re: Speedup twophase transactions  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
> On 08 Apr 2016, at 16:36, Simon Riggs <simon@2ndQuadrant.com> wrote:
>
> On 7 April 2016 at 07:29, Michael Paquier <michael.paquier@gmail.com> wrote:
>
> With the test case attached in my case the COMMIT PREPARED record does
> not even get replayed.
>
> I was surprised to see this in the test...
>
>    sleep 2; # wait for changes to arrive on slave
>
> I think the test framework needs a WaitForLSN function to allow us to know for certain that something has been
delivered.

Yes, test framework already has that function. That was just quick script to reproduce bug, that Michael faced.
If there will be deterministic way to reproduce that bug, i'll rework it and move to 00X_twophase.pl

--
Stas Kelvich
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company





pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Speedup twophase transactions
Next
From: David Steele
Date:
Subject: Re: 2016-03 Commitfest