Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faRf9-0001Y6-UM for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 20:12:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faRf5-00010U-HD for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 20:12:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faRf5-00010N-3S for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 20:12:31 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1faRf1-0001QA-7q for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 20:12:29 +0000 Received: by mail-qt0-x244.google.com with SMTP id y31-v6so2729136qty.9 for ; Tue, 03 Jul 2018 13:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Qru/5/QNnHL4j9VRsqipfrg3Na72uu7b7VBFfjVztz0=; b=bEeS4FOvjZz2NakxYAbZAtZS+wrGWN9gd5upkZJNwspJY4M+A07/1eV1/QUv0uMI1L CKbxH+TYLnrd+ZBKLTUtDAvrTeT4xiMnIap0aJPSUeXpipGNlKQSLySGaIFgnbOICz5t RBTeMBti5AInAkYDMczc/wQph1zo05UDAldwPyIjBgZpJp7Gt9cpneZCNRAfRohjj/ZF a8SmJM1o2KrzDyRuA1tHBntJwckRiIMYahdPTvp8IOAwWl7R9e/TTzBY+xtmCn6JTmKF OMb3LZB1ivbfn/QpVodTy//0XRW8soR+Bt3ojyngqVcPlj8Xz6AZoeNCjLL2CQY8gCUq Rrsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Qru/5/QNnHL4j9VRsqipfrg3Na72uu7b7VBFfjVztz0=; b=STjJ96l3gE375H03YTbJrWquBIrVTC0H0B5tFMvbWOpThS0haqKP8/UTAnnU1Sgcu0 d0jky7U1ptgum2xT5FoUnGN4wrwBWiF63FWS7vM4+5etgHG2YiYFpJYLvVvgif3PftIk QR/KpKo1anW9KiGJMqGALFUlgi0K3vQTAaC8w6N9ClPAwdINH/V3ju9Op988FpifGP5B WAf819x0yBoTGuVxQHr9uPV0zY6pz7s6OxBemOYCneG56G2filef+pvOWJx5yeluj9/y Z9HQJe8POSIlNC8fP66vqdLGf8l3CUrU2nndwkXAS9jcqXbZ+uWjyfbB7VgGpnehiVN2 frLQ== X-Gm-Message-State: APt69E0mH2qswd21dIXSAP/X4ZVpL/xwBbAUXvp1i9ZDzGSoC/0zh3At 5pYf2N4k8zaoZCeGhw07nYJvyg== X-Google-Smtp-Source: AAOMgpc6UaRwY4h5IjBzMHF91h3+lWw84popZIO6nvmv5NbNIxKpUdKVwXL/v/CSClQsuqO3X8BQAQ== X-Received: by 2002:a0c:af04:: with SMTP id i4-v6mr27802492qvc.125.1530648746275; Tue, 03 Jul 2018 13:12:26 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id l7-v6sm1403754qtc.27.2018.07.03.13.12.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 13:12:25 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E681221D4; Tue, 3 Jul 2018 16:12:23 -0400 (-04) Date: Tue, 3 Jul 2018 16:12:23 -0400 From: Alvaro Herrera To: Andres Freund Cc: Michael Paquier , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add wait event for fsync of WAL segments Message-ID: <20180703201223.2jgzfbihvh6q2g3w@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180703191845.6dcmu5ku56wsqgoe@alap3.anarazel.de> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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