Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKCXd-00036v-IT for pgsql-committers@arkaria.postgresql.org; Fri, 03 Apr 2020 02:58:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKCXb-0006ZO-GM for pgsql-committers@arkaria.postgresql.org; Fri, 03 Apr 2020 02:58:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKCXb-0006ZH-Am for pgsql-committers@lists.postgresql.org; Fri, 03 Apr 2020 02:58:43 +0000 Received: from [64.147.123.21] (helo=wout5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKCXY-0001RD-1D for pgsql-committers@lists.postgresql.org; Fri, 03 Apr 2020 02:58:42 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F02F27F5; Thu, 2 Apr 2020 22:58:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 02 Apr 2020 22:58:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=mEos8nzhgCp0JRZVcidMi9lc1X6 2se2yblsfauVfZXY=; b=guok28LmFei0q3dBAQ1GsDVma0LHfBOx0Q+U63SEILl g82GGMEzwEDJWHkv0J6nxnUK52LPFGRDxvvpfOStTJpcrOhCFYhmbaVSdq96x14j cGBuscIn6iRQZfHMkkPMeVd9yfIe7zYhJQ/qLB1MshryVfGrMtK6OgwA7pJ/AZtU uMSR6dHK1nYD0kSisfAQLG8xjRi51xLuSOf7Tyy1qbndEzvc7DUu+44qiDwr2zsz q90LLkapLw037er7dK7ayczBW52jIzcKMRAScDzMUsLynZ4SThWCa5hYacuynsK0 D78mP6gE4oxa3kEmygrK1DJctUwAKWKmHT9CGMS+YCQ== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mEos8n zhgCp0JRZVcidMi9lc1X62se2yblsfauVfZXY=; b=yHTOY1TNy0YSEfOnEwgtMY 26kCMWLybBeIEbdfiWeBVPgO+9QZa8L1yUy7J6J/+UcAZEsbODeVUnX1FHJK8Idf l4N53qL/5ppXEgi+k23uJxGTdWTgvRBq9CGQvu7h3zm54G/6yRMylnhmpbmH1j10 1TCCN4+Wrdody/2apIH5BDvIuHxzQaZrC8LKmFnq9g1m8uodwPixQ74OD3JTRyEu FzXMjfej+12JUYvX/rkU0C9RwV/WXu55CbUvj1QV3mm8LP9uRy6sNuzQtdqRW2Cz PlcI2sVQxcQSTv33imlmht2FtopeDM5MYM00U8X6RmkvOB1vnj889wHgsuwMDBBQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdehgdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfk phepuddukedrvdeguddrvdehuddrudeivdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (mp76f1fba2.ap.nuro.jp [118.241.251.162]) by mail.messagingengine.com (Postfix) with ESMTPA id B2F97306CF01; Thu, 2 Apr 2020 22:58:25 -0400 (EDT) Date: Fri, 3 Apr 2020 11:58:22 +0900 From: Michael Paquier To: Fujii Masao Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Include information on buffer usage during planning phase, in EX Message-ID: <20200403025751.GB1759@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="B4IIlcmfBL/1gGOG" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.21 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --B4IIlcmfBL/1gGOG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Fujii-san, On Fri, Apr 03, 2020 at 02:28:27AM +0000, Fujii Masao wrote: > Include information on buffer usage during planning phase, in EXPLAIN out= put. >=20 > When BUFFERS option is enabled, EXPLAIN command includes the information > on buffer usage during each plan node, in its output. In addition to that, > this commit makes EXPLAIN command include also the information on > buffer usage during planning phase, in its output. This feature makes it > easier to discern the cases where lots of buffer access happen during > planning. prion did not like that: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dprion&dt=3D2020-0= 4-03%2002%3A33%3A13 Here is the diff from test explain: @@ -73,8 +73,9 @@ Seq Scan on int8_tbl i8 (cost=3DN.N..N.N rows=3DN width=3DN) (actual tim= e=3DN.N..N.N rows=3DN loops=3DN) Buffers: shared [read] Planning Time: N.N ms + Buffers: shared [read] Execution Time: N.N ms -(4 rows) +(5 rows) Note that this animal uses -DRELCACHE_FORCE_RELEASE and -DCATCACHE_FORCE_RELEASE. -- Michael --B4IIlcmfBL/1gGOG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6Gpk4ACgkQnvQgOdby QH2ouxAAjFrLL7WYyEJaiJvbeCg4/9RnxiDfxg2Ilk831atN6vCJ5Eqnw6RaRdnH 46q/aRv4hJBlvuOGo+XLrSUZgaTFn5eEwWgaEF0q9gp9C5eu7vHp4wBbXoGuVtft +gGw7ucVVfXoBXBGvymiGAQHiy5KyqlgydvF+sTPtINvSRv4IL5pP4+Ska0fADfT u3oCTUinKbrVbrOYTMjTkX7bzVua0yHqFV3WD4iI6U76PgqwTOfQQrd2I31LNRTB CWJv59EPn5FHCP8fvD4qoae3p6H56e0TzYOHOK+qN93gRe4fhGcN/O0J8E1rNytr aj5+Wz/T/A+cKSVB3f3DFjMZ7UwP451p5gzMjWsvVmpnk+BLKbt5JeZp3RxJRKwp AkXCYAGekv3DLJjJY30qgY7tYJN4/LgMSjiulqdtdQqRDVecIijp7+QWJgCHyO08 bc1ZUJP7Kx0pi0M5/G3dRg80r9c88OL5gKI0oYB0YKJaUDuaWEm4QkSD5mLVHQ45 Me8O8Vzjg6zt3b3jmmn2VfA91zbXyx/67PPBpu6/twukkYdD/OIL9iRzQrWXS+kp ZYdZCM3gFTqf4rosL9I+2YQbSR5c1REURTvCMu7DKMwWHxXDnOrIpdc//+RHUGjT e6jcadbSsM0njceWN+lPwW1GmzESvQtQCFiAq1BFmBaOJ/WGUAw= =T81Q -----END PGP SIGNATURE----- --B4IIlcmfBL/1gGOG--