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.96) (envelope-from ) id 1wTuPQ-000pIK-1a for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 04:37:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wTuPO-008pa4-0v for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 04:37:50 +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.96) (envelope-from ) id 1wTuPN-008pZv-3D for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 04:37:50 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wTuPH-00000000asD-0334 for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 04:37:45 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id C3E6E7A0285; Mon, 1 Jun 2026 00:37:40 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Mon, 01 Jun 2026 00:37:41 -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=fm3; t=1780288660; x=1780375060; bh=/2cvmWf+/F ZtkGq2wHnYCMmNv6sv7aarvm9g4k4NpTo=; b=nYL0JIB+eUmcRnxeDDwxFjdJKT TvQk2CwUr+RA4ZLvuorXm4hIV+G6kAk5gFMPrI6iXkaonzGpBE4Mlm4jNrTuq72h FKjvBXiLnm4D+BbRUBBHNQE16QgJ4QREwISK1K99BIQ0gUq5LakczOnidysAouPT ak74gn6OYExuWJqwyN1KBbvEpwm3J7DgFvLdzfrawXyK/vNS17VyAO2WOv5ifE4F rpwsm+DNa33hvpBvbDJD2TxFLcHMIylV0sSFNijHurGmqnI3hEKud8ZF+JH4pciI lp12ND8EgD4/TiRUYF8LfC6cxqfgr8m8kLkRh5rhWlI605eWKjV42pVsWxuA== 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=fm3; t= 1780288660; x=1780375060; bh=/2cvmWf+/FZtkGq2wHnYCMmNv6sv7aarvm9 g4k4NpTo=; b=cuM8YBy9XxotRN4QpEmTMIg8PN++tcLzWX+D9sYz7XcbJ6rUl8P Hdg/liwdECMI3R5mFPScgvVwHGVfj+hVPArEbMRmS+P+pSU+Phb74DfRWlwBHCnU a/x1d7GRgVyQKkXRZzjYDeOdyOJ+dXJJ1U42zYUznvNZKgagY4C5bC924g3p5nM0 QlApJU7TngPiqxxyCtmcZkV8Q7DIWOsp1lF1Nimbo9cWVuHf5S1mPvAxiozCYoZ8 ysAwykn6NznyNNnkISwWQZfbQqAJ230RCnshFrgf/Y8QLhg/52ieKdeuDu8bl10w XftDFfIXG5PeYg3r/oNU09Ho1bSeOabLtow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE3c1yb0zmVHQVDWA6ht8IUgTo2p0xd5HXOwsMcKVvMlt7k6SO1L2d6k9FfWYul// 9Fmy9Ip1jtio8K/O/0d5AJhTnA3nLDd5iHt9TwzjRJqBbIcyHHSbnW9OM+HyxqiWwKsShb c+VXwvTK89Ju04AXzQhHJj363zEgjpYUFEC4eectjQQfRvnIMLoNFAf1SJPK0RI2Ps/GTn XIlUdP4Pznej5GW+JCReFBo0kP88N9xXSHudL6qYwoJtk+H8zBs84nkQhQoCcimsksqDGV FSDG3UnM/5AKvJCBYz752W+2Pp3KfxZaDXgCzotzXfCUwG0cLR28AB2iQFUJ19JOJB4oMx bkhJJPbT4Z6GP2PpF+EuZdIAMP+rsRosDCrv1a7VXZWgOhtoLcHEuK97wDRZPKtR4n54o1 Llq3jIa7amFk0S7UPekPpV4+bqbQK+EpyusYkQbmZLAExHT1hl7mNkkoS85gxR6Ye8De3k 15lQYZePFnWGdkThGdTLoMsOI9fUGUBhDcETfw6itDJhI6x0GUVIh/v/NEJtRrOdsCTiNu h0rCg3YWGNZKs9VfgUl0FJQ1czIm52k/ACd2j/HjorJeBcL7g+jscBk5I1xuyeLtplT2AM r7sr8odmUPOJZR95LKOQB4P7SJ9g8A8mJcuaaU66/le0vvfVUzNiV7fk3RNQ X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Jun 2026 00:37:37 -0400 (EDT) Date: Mon, 1 Jun 2026 13:37:34 +0900 From: Michael Paquier To: =?utf-8?B?7Iug7ISx7KSA?= Cc: pgsql-hackers@lists.postgresql.org, Kirk Wolak , Andrey Borodin , Andreas Karlsson , Nikolay Samokhvalov Subject: Re: Add wait events for server logging destination writes Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="175262D2X04TtRJm" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --175262D2X04TtRJm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 31, 2026 at 07:42:41PM +0900, =EC=8B=A0=EC=84=B1=EC=A4=80 wrote: > cfbot caught a build failure on v1, in the SanityCheck task on Linux > and Windows: elog.c uses pgstat_report_wait_start()/end() and the > WAIT_EVENT_* constants but didn't include utils/wait_event.h. It only > built here because of an accidental transitive include on my machine; > on the CI images the declarations weren't visible. >=20 > v2 fixes that by adding the missing #include "utils/wait_event.h" to > elog.c, folded into 0001 so that patch builds on its own. No other > changes; the wait events and the reported write paths are the same as > in v1. >=20 > v2-0001 adds the two events and covers the write(2) paths. > v2-0002 covers the Windows WriteConsoleW() path, split out as before. >=20 > Applies cleanly on current master; full build passes locally. Hmm. Usually we split the event numbers so as there is one for each code path, but here we are just dealing with the same routine that sends chunks. Using the same numbers seem fine by me. If others have any thoughts or comments, feel free. -- Michael --175262D2X04TtRJm Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmodDI4ACgkQnvQgOdby QH1Mvg/+L+L8pANEQiP2onsh7agPxS9hZQEillY1/NsKZ4pTf/nREzaxV7XbjmHt zthQ3mqCYaWMa1HG/U8MDfCGY8dtiVjkdAvtt1Dmt0UCBUhGVPzBcQ28bHQgJXgR 6DRjzzf6U26pmBRg/+pIeJBizryfaR4Mm2WEGcU0xzz5FO4IqXROp1AScXWl5e8k FKG5RNtSjqXySV0/hb15p/GtvDPz7lL84kGg/gXSbh2QBGt2tXiqhgPAP+CGpOHP r1QFGawxFOHTfVZ7c8vR32+0yTNjftCmjXcBOVrRD/+EnseMDsd3+ODLC0WQYnrQ YPogOQRH6wxi+Cx+ZVFNfufIVivusuA4jfeEUG+e/RO/8vcQtQ1E5PjshskL0AMK eS3B5zx6s4YZyIxnM7hsg4MxDife8HzLxQpgzEc43GlJaIkAW/pk9U2B5vgd5iBo wCL//Dfa3Eb5AgL5DBimxe/1aQw8Pp88v0o8TDdwHApDczeFFmgq8JUG0q2G57ir ODjfVKk/G+0d1EJuNiyEoK/IPAmmBsVlWaNfd/MiPzRsB/XVT8vXUNqBm6HXQxbV 2ZQk9YZd743B/IAPIWnSSFWYrzp2KgT+GcTtQrbFFjQJNkW8CGZE7Uw82xz6V3BR GHKu1zJiIoQ8mgsotLn3KCUguH9jv5xDr6Grl6I0WGTcOwQG8tM= =gA5e -----END PGP SIGNATURE----- --175262D2X04TtRJm--