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 1faQpF-000706-BQ for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 19:18:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faQpC-0007LC-VQ for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 19:18:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faQpC-0007L5-OW for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 19:18:54 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faQp6-0003x1-5R for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 19:18:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 97CBB21751; Tue, 3 Jul 2018 15:18:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 03 Jul 2018 15:18:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Klx47lK+qHxCde1xlij1pD3oKxbQnIdQamLWYhy3qV0=; b=Wc32mLC/ EwftgZ2a9nAjGaEk9Da6Ha+fb2HG861KWFGKa5mdug28k3f+va/Bo6/pgu49FtVw XAokInRGc9ZkGHWjFwx3rmqth03HQYvEWNBE70Zzy4J0bBKV9vo2PVYyBGPzxt0r WHoYSRhYyLfBhPj89Pu4ecOVEr7tW6ozR4BpCPgatTnOTphmvkelspdOK8wnx1OH 8gOXUKajqYa2XXNzdyuBdWB9lI2j+PpT06jxqH54jlX0xThVhixRRWhx8UmMtMtJ DXKs4PNHEiM8tRIBFI4oAkzjP38giOvstkQsI/+R9+zBtaXFl5IuKIm5SC4Z0HD7 0NQq5SIfcD6mXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=Klx47lK+qHxCde1xlij1pD3oKxbQn IdQamLWYhy3qV0=; b=PVmrUmTlZyBgiuLCCAYtsTED9WfxhjIKnnRm067Z3GIoX eOTgGjOIc8nIQ3payiAv3oalxYWXIa2m65i4vGSq50Q0H80krX3QD4zuTroosDu7 DxoPVUOOd9ke9SnOCa+nPzfT3bPqpsy7TWanzvoRlMsT0+RmgOjQZ9nLHewoeCrQ pOs62tCXXQqDHOxZojVeZN9L5e+LOYlh7FQozIigDRYUcy1QqChyz3qKRbfnJjYZ f2vKmL2W6B5yn5hVNaAXRKqBGMwl3FSQ0sUatUFCpeylirYW7XfIhoGGIcmvkBdV XQWqCMCmV3iqE5CDmNANTqVzG7/mxjyyhMgxvvRtA== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 10F7E1025C; Tue, 3 Jul 2018 15:18:46 -0400 (EDT) Date: Tue, 3 Jul 2018 12:18:45 -0700 From: Andres Freund To: Alvaro Herrera Cc: Michael Paquier , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add wait event for fsync of WAL segments Message-ID: <20180703191845.6dcmu5ku56wsqgoe@alap3.anarazel.de> References: <20180703005558.GC2159@paquier.xyz> <20180703191320.k75fit2ulkuysudf@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703191320.k75fit2ulkuysudf@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, 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. > 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. Greetings, Andres Freund