Re: pgsql: Add wait event for fsync of WAL segments

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Add wait event for fsync of WAL segments
Date: 2018-07-03 19:13:20
Message-ID: 20180703191320.k75fit2ulkuysudf@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 2018-Jul-03, Michael Paquier wrote:

> On Mon, Jul 02, 2018 at 12:23:35PM -0400, Alvaro Herrera wrote:
> > I wonder if we should backpatch this one all the way to pg10. I don't
> > see no reason not to.
>
> ABI breakage (if that's the correct wording?). Simply cherry-picking
> the patch from master to back-branches would cause extensions and
> plugins already compiled with those versions to be confused by the
> ordering of the enum WaitEventIO. Well, one simple solution is to
> simply put the new event purposefully at the bottom of the list. If
> that sounds right, I could do that on back-branches

Are the numerical values actually exposed to the world? I thought the
only way to this info was through the system views, which surely expose
the names, not the numbers.

Actually, comment on pgstat_report_wait_start talks about WaitClass as
if it were a thing, which it seems not to be. There is a comment "Wait
Classes" but that term is not used anywhere else.

If reading wait events is actually possible, then it seems easy to
backpatch this in pg10 by putting the new value at the end of the
relevant enum, yeah.

> but I'd rather let HEAD on it current state with the event set
> correctly ordered.

Sure.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2018-07-03 19:18:45 Re: pgsql: Add wait event for fsync of WAL segments
Previous Message Peter Eisentraut 2018-07-03 18:06:36 pgsql: Correct comment

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-07-03 19:18:45 Re: pgsql: Add wait event for fsync of WAL segments
Previous Message Robert Haas 2018-07-03 18:57:57 Re: AtEOXact_ApplyLauncher() and subtransactions