Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEIbJ-006c7w-Bl for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Nov 2024 01:36:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tEIbG-003dmc-5C for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Nov 2024 01:36:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEIbF-003dmT-RM for pgsql-hackers@lists.postgresql.org; Fri, 22 Nov 2024 01:36:45 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEIb8-003CF7-ME for pgsql-hackers@lists.postgresql.org; Fri, 22 Nov 2024 01:36:44 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 035A01380247; Thu, 21 Nov 2024 20:36:37 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Thu, 21 Nov 2024 20:36:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1732239396; x=1732325796; bh=LYYrp+Sncf jkTnDQUercHuoMDPiSj88i1mDOKREIZFM=; b=ICSPw9Zczu9sje1mkwvdRsg00E xYPWd6pjzdPKg805MyuqmqqNrpLGRZmJHvlibPxj0hcqvuUScLAnOi3+7O78/VvC GcvpHAhFSqvDohsfz+xDyR99XY8OXBLNLyJaP7yHnxCyWzLRBnDFWboDUaHeZ3v5 q33Ykr8Dp4nzk3HFMOvPVaC0r8gz/JRDvf2VdTtZYzxXeUMtHMSE9B2vys9RVB3V oGZw9pWoqHxneuFaT9jIiUukRJLsL2rYtoX49VRzo0XxiSNcdrQjIY5MgGhqob48 CWaWcCVMxbht3MBiu7ze/U02XNqnfxAMTXfeYx0H7IorytL7Fp7QriGdcesg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1732239396; x=1732325796; bh=LYYrp+SncfjkTnDQUercHuoMDPiSj88i1mD OKREIZFM=; b=eK6+2fjNTBGREFYPYx3w/eZx/h0FfCcnbW6ng8q6M5qIJDdRevf jxwvhoTWPfoGGotfB8jUgDa7wD5IMDmWvKJVW58tvHM4sJfRYRUdeid3vIO+xly1 EsB+1btRNNhfN7dAQKg3EmMPPGM4eFaRnh0Kp2Cf/qaliM+hOIPAEuqKH0FkQJsq 4fEoCW6T172woRd3r2DYfUPPgxWippvcM+uOaU55WKhEjJHn0Nh8SC+1oppEZA4A EVi8wwZgphWJQ3vLd1pZxedTywOBnuOuST4aRrCwi4UEdt+a1V25aSSrig5Veu6h eoHei4sOeSdXnwuB/lrkapvkvOgjRtVyJ+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeejgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhgg tggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoe hmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleei fedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiipdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtgho mhdprhgtphhtthhopegshigrvhhuiiekudesghhmrghilhdrtghomhdprhgtphhtthhope grlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhrtghpthhtohephhhorhhi khihohhtrgdrnhhtthesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrg gtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Nov 2024 20:36:34 -0500 (EST) Date: Fri, 22 Nov 2024 10:36:29 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: Nazir Bilal Yavuz , Alvaro Herrera , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org Subject: Re: per backend I/O statistics Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/jM6+/QoF+/xCPEI" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/jM6+/QoF+/xCPEI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 21, 2024 at 05:23:42PM +0000, Bertrand Drouvot wrote: > So, given that: >=20 > - the end result would be the same > - the code changes would be non negligible (unless we have a better idea = than > pgstat_get_entry_ref() returning a NULL value). Hmm. created_entry only matters for pgstat_init_function_usage(). All the other callers of pgstat_prep_pending_entry() pass a NULL value. This makes me wonder if there is an argument for reworking a bit that. There's a fat comment about the reason why, still, that would make the get interface for variable-numbered stats a lot leaner.. Not sure what to think about that. -- Michael --/jM6+/QoF+/xCPEI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmc/4B0ACgkQnvQgOdby QH3qyQ//boeJ5ZmHtNstB2S5MdorSS1C+Fcfku8UK/VhBiZ+S5nkRShFNiDmZuxv ONCuTBHnoQ4DSfF4vSJ+6fc7kqQgX0ojxheAg82ARRCr8M0JagHaRA+KBqOKoFqU JyfIlsMrFtZfE5RWTdar78bVwOYBalyhVmABHfT911HWwCqci/8D61zZkAKl/RkC Hk3RgVg4xWs239lCPhmHJ8H0NxItOjQSu04gAHJsA+sReTGVE8dW1+pRQCpr/j0p k707Z0LrLJmXWEnnWxV+UwSRzKoaSvpN/MddcYsfPrmF2aqya5YAQlgVG1Qjj6s5 ONLiif9/IXjFDOvi/QMygzs1klYuKjRx1e7/EilXYP16rigI3ePqhEVPgeDdt0PE duzi/Jzkkl0saDmOu2V8QRTwJhnUXzCwF7tDVjpvj0wE3b2awhkFhIAHQEbzRYjd 8emhfMkLhNvMyRKE6n2DMnYG9/ZhNk/PDGkVIlf3MrPRn8s4QU3zxk8if2Sq9kv7 suKBKxMFy/FAB451Ph25j4NYHk4UwoRDLZ1XElL5sdcTBtLi+jwM+22qjZC0tqFW 8tDlfZ1VVFsJmZtWw5hDMMju3lrAayJkPqJbrxa6rCMANN0cjW5Ydoju2ZCIQQf9 yNIfbvygEtya8ErXSC++SwJFJhuddBDBFEHXPaKjLSQ+GYK4UeI= =ziKA -----END PGP SIGNATURE----- --/jM6+/QoF+/xCPEI--