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

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

On 2018-Jul-03, Andres Freund wrote:

> On 2018-07-03 15:13:20 -0400, Alvaro Herrera wrote:
> > 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.
>
> There's at least some work at high frequency sampling of these, and I
> assume that's not going through SQL, but rather C functions.

You're right.

> > 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.
>
> Honestly, I don't really see an argument for backpatching this. If
> people started measuring it might even invalidate their stats.

Hmm, if the stats are really invalidated by this change, then surely the
original numbers were incorrect anyway.

Anyway, it's not a huge deal to me. If Michael doesn't want to
backpatch it, it's his call, and I don't have the cycles to do it myself
right now either. If some other committer cares about it, well ...

--
Á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 Peter Eisentraut 2018-07-03 21:33:57 pgsql: Add $Test::Builder::Level to pgbench test functions
Previous Message Andres Freund 2018-07-03 19:18:45 Re: pgsql: Add wait event for fsync of WAL segments

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2018-07-03 21:58:17 Cache invalidation after authentication (on-the-fly role creation)
Previous Message Andres Freund 2018-07-03 19:18:45 Re: pgsql: Add wait event for fsync of WAL segments