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 1qaxjN-00An4n-Ci for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 12:22:01 +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 1qaxjM-006s1i-0u for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 12:21:59 +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 1qaxjL-006s1W-20 for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 12:21:59 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qaxjG-001jg1-2J for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 12:21:58 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3DEE35C0092; Tue, 29 Aug 2023 08:21:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 29 Aug 2023 08:21:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1693311711; x= 1693398111; bh=Zx/I77l2DyGvGWCVGntAtWZu+U99cJ5iQz9Oizo5vPI=; b=f E6iKD1EDBWc+gr/LI6ed0NjunBr62wIiBVbYZ0XHndZUTMdE0VgRdf8jrVAV1DK6 r0LUfJdrPYl4+xWfaWHLJOmmqjr1EBlhIcE/LV5eFLjrtS3ati+jRK1Ey9ScJUU0 +etJCpxIrfSl8jabza6KcRsVyCLTVSM77lmHy5Jk7FmVUxvA0/hBWUXP/KcH0QVq A0LaBz/M0d77VBE00YFtnAnMioIlZT9PQMYTLm/+UOaBvCyY30p6IkXG4gcm5g4A yRA6RYau786GnNP9ZFsfqqMNbipqjue3AkC3v2Mwpmtt6WErBD+yEtmHUcjjxZbV j3dj/q80xzeUrWgv4onDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefiedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Aug 2023 08:21:50 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 71534A9; Tue, 29 Aug 2023 14:21:48 +0200 (CEST) Date: Tue, 29 Aug 2023 14:21:48 +0200 From: Alvaro Herrera To: Michael Paquier Cc: "Drouvot, Bertrand" , Andres Freund , PostgreSQL Hackers Subject: Re: Autogenerate some wait events code and documentation Message-ID: <20230829122148.5o37bs7dszv2xybw@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Aug-29, Michael Paquier wrote: > On Tue, Aug 29, 2023 at 08:17:10AM +0200, Drouvot, Bertrand wrote: > > Agree that done that way one could easily grep the events from the > > source code and match them with wait_event_names.txt. Then I don't > > think the "search" issue in the code is still a concern with the > > current proposal. > > It could still be able to append WAIT_EVENT_ to the first column of > the file. I'd just rather keep it shorter. Yeah, I have a mild preference for keeping the prefix, but it's mild because I also imagine that if somebody doesn't see the full symbol name when grepping they will think to remove the prefix. So only -0.1. I think the DOCONLY stuff should be better documented; they make no sense without looking at the commit message for fa88928470b5. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/