From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Speedup twophase transactions |
Date: | 2016-01-11 22:24:45 |
Message-ID: | 80856693-5065-4392-8606-CF572A2FF1FB@anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On January 11, 2016 10:46:01 PM GMT+01:00, Simon Riggs <simon(at)2ndQuadrant(dot)com> wrote:
>On 11 January 2016 at 20:10, Andres Freund <andres(at)anarazel(dot)de> wrote:
>
>> On January 11, 2016 8:57:58 PM GMT+01:00, Simon Riggs
>> <simon(at)2ndQuadrant(dot)com> wrote:
>> >On 11 January 2016 at 18:43, Simon Riggs <simon(at)2ndquadrant(dot)com>
>wrote:
>>
>> >It's clear there are various additional tuning opportunities, but
>the
>> >objective of the current patch to improve performance is very, very
>> >clearly
>> >met, so I'm aiming to commit *this* patch soon.
>>
>> Again, the WAL read routine used doesn't deal with timeline changes.
>
>
>Not relevant: The direct WAL read routine is never used during replay,
>so
>your comment is not relevant since we don't change timelines on the
>master.
Hm, OK. But, isn't this actually a bad sign? Currently recovery of 2pc often already is a bigger bottleneck than the workload on the master, because replay has to execute the fsyncs implied by statefile re-creation serially, whereas on the master they'll usually be executed in parallel. So, if I understand correctly this patch would widen that gap?
Anyway, as evidenced here, review on a phone isn't efficient, and that's all i have access to right now. Please wait till at least tomorrow evening, so I can have a meaningful look.
Andres
---
Please excuse brevity and formatting - I am writing this on my mobile phone.
From | Date | Subject | |
---|---|---|---|
Next Message | Vladimir Sitnikov | 2016-01-11 22:31:37 | Re: Driver behaves differently with prepareThreshold and timestamp fields when daylights is active (was Re: Re: 9.4-1207 behaves differently with server side prepared statements compared to 9.2-1102) |
Previous Message | Simon Riggs | 2016-01-11 21:46:01 | Re: Speedup twophase transactions |