Re: Speedup twophase transactions

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, David Steele <david(at)pgmasters(dot)net>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Speedup twophase transactions
Date: 2016-04-08 13:45:12
Message-ID: EDEE5B08-752B-42F9-A243-732599BE2EC4@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 08 Apr 2016, at 16:36, Simon Riggs <simon(at)2ndQuadrant(dot)com> wrote:
>
> On 7 April 2016 at 07:29, Michael Paquier <michael(dot)paquier(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2016-04-08 13:52:04 Re: 2016-03 Commitfest
Previous Message Simon Riggs 2016-04-08 13:36:19 Re: Speedup twophase transactions