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 1faQjy-0006kF-BH for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 19:13:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faQjw-0006nQ-8Z for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 19:13:28 +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 1faQjv-0006nJ-SM for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 19:13:28 +0000 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1faQjs-0000AU-Lc for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 19:13:26 +0000 Received: by mail-qt0-x243.google.com with SMTP id y5-v6so2562595qti.12 for ; Tue, 03 Jul 2018 12:13:24 -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=oSPJ6qnZghdJ5iAG7BLLsNEy+BSuJzJmnQZ1vESCf6A=; b=sOE7us4gMxjHoejh+uGlq2ENUwnJ6/epDeQK1ARuXBzD07b6LV9vkBpK9zfKtJJ3k+ KvIKCPiY55evajIywJWEChg2C3RTvMNHmvoExL3gQLNj8ypex48ujkd9/i62vHHKtprX NYaZFcL89qAMilGRt91LtSEeZBIqCx29ptrsiCwMXC5z7J0FV9Qce7m7m2vzRcJckEpb z1l93jT6ya9p+BsRi4pD/Bkz+0L7tDzZq0gYhs6YslMLrIADgSdhKgN4gGuZXBNY3C1H SAz768aZLFo/cK+DPXPfwwy9hJd01MpgwYVobou1lZgWaecuelgWQdBd46KPO6EgXOwP qWsg== 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=oSPJ6qnZghdJ5iAG7BLLsNEy+BSuJzJmnQZ1vESCf6A=; b=ny2va6hCMzgDbIKbV/mbVMCcNVo59tPf+03sg3DQKNvau27xS1Dvqq4bYPbZmFiYHD evwrPlDS4qdzT4nyk8qLWaKROK70FrQP45iKRpaXxGW74SEC4kGQEeRvUyrSuNSyu3eZ Y2JwpCwhX1ztEmKNCZ17pxWZ4/wVkoi2tAzCPZ7pqdlL8v8M/2hpBnfeDg1QroxnppnE 6w+oJXpAbEQepW8rmupYBWChjDvruOEJiRL/DIZFei/O02fvFGsruPfBm9sMcyMgP/g5 IqOgQ3IFuVeMDIE38Cu+MVVhIwv5NlB7W5YsQhuGPRF4gJDXfL0iUqqKaoRCYeSSuYWB C3nw== X-Gm-Message-State: APt69E2zF9qzV91AenkBMrC7CoC0WwZKLyedVMq2xmgHrWiOP4Zd08tB RWnfclkZKMJ1N/68xVyrOIff9YfEEnfR8PTLHQYS2oYL6iGe8VW6dCaAax1/PNUfNtwtAIG89e4 I7RFUkVv/7FLEKpKtndYyKn4UBPHCBBMNYrLcTKFH1McZyLfPmIdTRHInky6Xu8sWXKrlU2KdM6 fyYZ2T1K1GbdDQCjI= X-Google-Smtp-Source: AAOMgpe2bE9W2rPrGnHxSn24J7DZwGvm/mzeRtqKC8VsTaRWHpxeAyDGuGhBH4fPJACSIeP3UpCmPw== X-Received: by 2002:a0c:b310:: with SMTP id s16-v6mr11904616qve.243.1530645202806; Tue, 03 Jul 2018 12:13:22 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id d7-v6sm1168628qkf.14.2018.07.03.12.13.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 12:13:22 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 7354821D4; Tue, 3 Jul 2018 15:13:20 -0400 (-04) Date: Tue, 3 Jul 2018 15:13:20 -0400 From: Alvaro Herrera To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add wait event for fsync of WAL segments Message-ID: <20180703191320.k75fit2ulkuysudf@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180703005558.GC2159@paquier.xyz> 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, 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