pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add wait event for fsync of WAL segments
Date: Wed, 4 Jul 2018 07:32:20 +0900
Message-ID: <20180703223220.GA1672@paquier.xyz> (raw)
In-Reply-To: <20180703201223.2jgzfbihvh6q2g3w@alvherre.pgsql>
References: <20180703191845.6dcmu5ku56wsqgoe@alap3.anarazel.de>
	<20180703201223.2jgzfbihvh6q2g3w@alvherre.pgsql>

On Tue, Jul 03, 2018 at 04:12:23PM -0400, Alvaro Herrera wrote:
> 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.

My take is a background worker which connects to shared memory and scans
directly ProcArray entries.

> 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 ...

New wait events on HEAD are adapted to HEAD in my opinion, so I would
keep the code as it is now.  If anybody wishes to back-patch the change,
of course feel free to do so.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (14+ messages)  latest in thread

Message-ID: <20180703223220.GA1672@paquier.xyz>
Permalink:  ../20180703223220.GA1672@paquier.xyz/
Also on:    postgresql.org/message-id/20180703223220.GA1672@paquier.xyz

 · 

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: michael@paquier.xyz, alvherre@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgsql: Add wait event for fsync of WAL segments
  In-Reply-To: <20180703223220.GA1672@paquier.xyz>
  References: <20180703191845.6dcmu5ku56wsqgoe@alap3.anarazel.de> <20180703201223.2jgzfbihvh6q2g3w@alvherre.pgsql> <20180703223220.GA1672@paquier.xyz>

* 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