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 1tLaXy-00FjiG-M8 for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 04:11:30 +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 1tLaXv-006cQA-Rq for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 04:11:29 +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 1tLaXv-006cNu-GR for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 04:11:28 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLaXt-002OYo-To for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 04:11:28 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id E68441383EA8; Wed, 11 Dec 2024 23:11:24 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 11 Dec 2024 23:11:24 -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=1733976684; x=1734063084; bh=wCDypTbEtN kV8yM+IOmUGCGDwfXe1GVdbJncGzYIl18=; b=T+NVoiufcwebpzDwQSTYVAGeBR sCg5mFzaCQ/CjN+eu68oRDAVVc09e0HumTfbQL93tnh2AZJHMe9UjCeY+EwlbXBM CTNAm7ViqbJ8+qwufF/BuM8Hj7IGuwKoW2ji+9LnOEkQYAYWvTtsy0FwH829T96m YoAsCuxv9g9FzYJopnIN2dcDlZ9+2qET1+C/7rbWk9uu4wGuhKYVu/rTPLoi/O52 orCbjQjeXLMWNnrhAzZfmB/UZo/uOpD7XQ0ZyLUtlPhARzdZvFls4b80Mt8NocCO ZTizVB51VPpG23CONlLGj9+K7mm/dMKh6PfKDly75vZY2iIVRKd6/Q8BQ70w== 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= 1733976684; x=1734063084; bh=wCDypTbEtNkV8yM+IOmUGCGDwfXe1GVdbJn cGzYIl18=; b=bkJvF2l5AxuQOki0jSlvye5PkNGaOU6761xcLdeL/KX7oxwx+37 DIaOoSXe5BwFNimq5pTyOxE9oVzOPcjZy32/VcBa96qeXA62JcKdxcnvmzeNoGQD UJ3dPiLV1O2sGJGPsnlGK8M12Ja+6xNF1qRNjked/ZxH1WTUcY3K65uNnVezvw5s GZeZkUkSNgKn4xFj7KSbWcs9gHhcr2IJykVseYUILW1G8Cd17GcUtnWm511LnRT7 jMq9QTWbVhZrKqE8XCicYzNC6g/2yauvGiB4RsY+vSIkuotlChUZN0MNo2VNSXac X2REMMeSgeK2zkgzFYpqLZnqGbIfBAE1ziw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeefgdduvdcutefuodetggdotefrodftvf 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; Wed, 11 Dec 2024 23:11:22 -0500 (EST) Date: Thu, 12 Dec 2024 13:11:09 +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="QWHBp+DHAuzb4YfO" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --QWHBp+DHAuzb4YfO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 27, 2024 at 04:00:14PM +0000, Bertrand Drouvot wrote: > I'd vote to just keep the pgstat_create_backend_stat() call in pgstat_bei= nit(). >=20 > That said, we probably should document that init_backend_cb() should not = call > pgstat_get_entry_ref(), but that's probably worth another thread. Hmm, yeah. I have considered this point and your approach does not seem that bad to me after thinking much more about it, and you are putting the call in pgstat_beinit(), which is about initializing the stats for the backend. So I'm OK with what the patch does here in terms of the location where pgstat_create_backend_stat() is called. -- Michael --QWHBp+DHAuzb4YfO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmdaYl0ACgkQnvQgOdby QH32MA//Qh204Dn+eh54AsMPlcMKJhy8vGqQolo5t5PjE23pLGZMpn1TBJ3/MZJ3 9Y9/MIeYyy7k4HQzAYQWI5vjs/1azs4efPJIkNNZdRvnHkYmhgg5ASO+YUVYuc/F bqx0I1GeljNuYz+PPUZgmbSSe1u9mrf3bv2YdF2ox9rWDGfK5kldnEQi+89/8RN4 DTdzEnHn9hdKc94MZgsYSY9iBMAcdjhzdEopntZ1SrD/pq+5+QjR0PFhprp9W+Au pU8Kgwogg5t3ccDKvgQ2Cxv3GlBH8io9Jj3L7E3Y/UzOaEKRzc3fHQxfPbb4EjUM 4k423ZdTSalAMKsgckbK/Ax7xMS3qzydbqcc4P8x76B8/bZtXwdR8FT+P1rg03DW aDbYzWR77vBZsRi2tRT9JZBY/EnETJpX3GNoE8pBsPwJlDpKRyT8nwO11U9/zeiJ oBchSu+KxcSlBmpLpahEUhHkUtsbKtSCsSYw4xUuMPv2Z6xLYYTj+7/dbMrCh6Nl WGq5ixhyZngpEWNtFAZVuIoNqoIrEXq63BmK5DDSmPVA7dOJ1tagHkmDXcEszaqK zTqwr+TyLXgey8G7aUQYU+TePgVM466EOK32xYg+ism27x5I/XoxaanMb/ZnWIzy LfGzSwaB6sL323jMbVEIuuXRgaXbc13JOd0LAQ303aK104eejbE= =rAev -----END PGP SIGNATURE----- --QWHBp+DHAuzb4YfO--