pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add wait event for fsync of WAL segments
Date: Tue, 3 Jul 2018 15:13:20 -0400
Message-ID: <20180703191320.k75fit2ulkuysudf@alvherre.pgsql> (raw)
In-Reply-To: <20180703005558.GC2159@paquier.xyz>

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




view thread (14+ messages)  latest in thread

Message-ID: <20180703191320.k75fit2ulkuysudf@alvherre.pgsql>
Permalink:  ../20180703191320.k75fit2ulkuysudf@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180703191320.k75fit2ulkuysudf@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@2ndquadrant.com, michael@paquier.xyz
  Subject: Re: pgsql: Add wait event for fsync of WAL segments
  In-Reply-To: <20180703191320.k75fit2ulkuysudf@alvherre.pgsql>
  References: <20180703005558.GC2159@paquier.xyz> <20180703191320.k75fit2ulkuysudf@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox