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 1tuS2n-008fik-SL for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 08:11:25 +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 1tuS2m-00AQzW-HI for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 08:11:24 +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 1tuS2l-00AQzN-Me for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 08:11:24 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tuS2i-003WT0-0s for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 08:11:23 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id E736625400C7; Tue, 18 Mar 2025 04:11:19 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 18 Mar 2025 04:11:20 -0400 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=1742285479; x=1742371879; bh=bVB2uruW3t XntvHPlv0I2RtB5aqcPgOY7OqmmGK60rk=; b=ZdL718UuOv6qkUzw05+zDz8Txr 9KmKjNto8xLW2w1mN4Ucxl+jdmqWSwBAK6oPvJRgUqneJC4WhLJAJ9QGbtdLiCZz u3DIoMytbLZdgjy+hSLU3a1d5WsX28FdRyKXpjBkWqUtpTcsewEJhFNeUW56Eg2F Tw1PJonF9fUb5TzaPFii9O9qDuef9luaux6Lnf/bLbyz3OwRCaOzZkMHivd78naK 4b/m4FTrBfOa6Dc/FgZs8lr4z0xDbJHU8FVL4h93glv2eboZ9GJJs+127IQoUPRF VwhvquWRxLwp79pargAPo43LoJ+Pcltu1U6otdx6m4G6DldXQ7uC7E6yGvNw== 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= 1742285479; x=1742371879; bh=bVB2uruW3tXntvHPlv0I2RtB5aqcPgOY7Oq mmGK60rk=; b=uoxSXTaBL8zWs46CtTw64N3Pt4LdpMB5vJsdYkPViGAfaa2++NY glM+H24jxrfETOX1O6UmE58fyufebf4rEHGMI0tEqvt4ANsukeIuMGHE/mmrG3tT 3E5XZWKe7Ja+79MnxjHc7FAE4B4PYOAP4K61Eipz7T4QDa4m+5r4nmKCO0Lpb5bJ 5rlOJRBbzG4evwB1xxGV/1XV6T70i2uDhAk6iNboEg5r3FzKpKN34UUlrLPjk6XA +yigKKTQursiSyT18G8Q44L9Hpkay4kj5IF3ED8rsNkG3K6CBEBxEQDpc0Xrh3F2 HzwR2yJNoeKYeeE2mZiw0pLzSlrcROGJ/xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeduledvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepsggvrhhtrhgrnhguughrohhuvhhothdrphhgsehgmhgrihhl rdgtohhmpdhrtghpthhtohepgihunhgvnhhgiihhohhusehgmhgrihhlrdgtohhmpdhrtg hpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhl rdhorhhgpdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Mar 2025 04:11:17 -0400 (EDT) Date: Tue, 18 Mar 2025 17:11:02 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: Xuneng Zhou , pgsql-hackers@lists.postgresql.org, Andres Freund Subject: Re: Fwd: [BUG]: the walsender does not update its IO statistics until it exits Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EGaX9gB4mTGj3eIQ" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --EGaX9gB4mTGj3eIQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 13, 2025 at 01:18:45PM +0000, Bertrand Drouvot wrote: > This particular sub-patch needs a rebase though, done in the attached. 0001 > remains unchanged as compared to the v4 one just shared up-thread. If 0001 goes > in, merging 0002 would be less beneficial (as compared to v3). PgStat_PendingIO is already quite large, could get larger, and the backend stats would be a natural victim of that. What you are proposing in v4-0002 is beneficial in any case outside of the specific problem of this thread with WAL senders. It is new code on HEAD and pgstat_flush_backend_entry_io() being the only entry point where IO data is appended makes it easy to reason about. Just to say that I am planning to apply this part on HEAD. -- Michael --EGaX9gB4mTGj3eIQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfZKpYACgkQnvQgOdby QH1HLw//cUbln/ZXGSpijTBN10hEYV0bHLY85qON8jSsUuX7nuTyvcDe1dg/3pUV RCD4BK4XQKZMtA8trf+VHbV2Vm0UNG9WgtK9y7BTWu0xW9Gck04ODGcEPrF6+1y3 82ih/84Bk+pFAQ/eLLCBHqu3Qhl8ZlEUrSQN6A9KjguVMZNijkEWeiKYrlqwbMZI QkAMrT6/uzKiQA4B2MZxY3EW/dA12iPMSxISlsSJyE0mvpJR/kGKbshKKVstic/4 IsMBNWW1DOYt2q3Yy0iX8Pp9kmu25wCIlAT7XMba7B/nCyBGqi0/752J5RBaZYHU X4T8nmccv0DE0O6Mc/v0flNbJgbRD8JpDo3j7+9BHOQUgp0E16Q7Qd0FDnU+Z4vC mactkEml9GFBVYDYI0wYJ/SIhCNNQQxrNDH1d+8asGHFn9TwuMr6jJtnfHzgSqIp A5oRbsbcCTwyfWNRQ6xoE/Tn3XEpZA9WkagL/rX1Q7WstIlRyyb6K9D2oNbitQ7N dc8XKqJJoyLa5aSWa+lSM0cdxGZ6ziZXkN5kZ2U7cFSVbNn9rQqmFuFHwhMfhuXy cuH+o5gtWvDaTSs5Rk44Ou4e/vG+SzC4F1CCwG/d9BjihiyqVddwtInfYIiFsYRZ OtWScS+MdGVY0TXoOf7Zvc45Jr3kyiSa7C9cV9jE5Vr2BKDH2jE= =b8jw -----END PGP SIGNATURE----- --EGaX9gB4mTGj3eIQ--