Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIzkX-0001pO-0P for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jul 2023 22:52:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qIzkV-0007F0-2n for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jul 2023 22:52:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIzkU-0007Er-QC for pgsql-hackers@lists.postgresql.org; Mon, 10 Jul 2023 22:52:54 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qIzkS-0039RO-Ad for pgsql-hackers@lists.postgresql.org; Mon, 10 Jul 2023 22:52:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E03C93200900; Mon, 10 Jul 2023 18:52:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 10 Jul 2023 18:52:51 -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:sender :subject:subject:to:to; s=fm2; t=1689029570; x=1689115970; bh=qC 7pJzrHbm2QvaRs5yTFp/6zPqnNfLofutkIZOkDl8U=; b=Ksj6ADSnbVSbYf5I/m nSSqHIoQ3fm4Yv263YYvHbDB618CGu5EOdcSfAnRIKoJv2Pq8OSkzyPcqHMiVryh LCQX73JF2Uegnx4swRNdO7/GRbQvAsizdxChXKL6PGYFcDKWGxPAdjN8Nugah2aV 8fOxA9ITIa0z30ZDkcZXbl2kgIX9Nzye+SHmK4vgxVbQLVzeFL4eJ1JOBNA5IbCD Urloc6AwrJra/RZvAFxBFxh6jEdGM8/zGxGynivwqlLs/r80JnT8sP6+Z9vb6eET c/0uCURmnoP07WkhMyQoqVgaWhF2UsAxkOsAmruZaTnt7m3aXjzChvvCgV3CHJ+1 hhyg== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1689029570; x=1689115970; bh=qC7pJzrHbm2Qv aRs5yTFp/6zPqnNfLofutkIZOkDl8U=; b=qU96lUQNbjiAs904JXNyH68jMQ8kI CbZrNL05INQgT/D4R1dDJ/ULXPhVreYYUBxNkjkek9QsxbFJWGn+KCNFN5R0UbFy 3CGz3qpOXtMnSbKwECwPq5HYv9TU8k6lrGlDdhahivcuXYkbi7Ba4tf1F80AzUwK uoPXM0QGTPHyh8nRCysQNouCKf51XzYFq7mbN0Yg5dPtJY+t8jwgAUC1RU5CP+84 Z6eiwjDto2Ke+nu9dVJ2KzLaLOPEnzhlg155cD4f0zVDbd+i3dBvcV8X36vr6WP8 2awrVc/RncelGp4ST367rPRztcXSQsxKFVyfm8eMwX0UVleDGJigAQfUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrvdelgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Jul 2023 18:52:48 -0400 (EDT) Date: Tue, 11 Jul 2023 07:52:45 +0900 From: Michael Paquier To: Alvaro Herrera Cc: Andres Freund , "Drouvot, Bertrand" , PostgreSQL Hackers Subject: Re: Autogenerate some wait events code and documentation Message-ID: References: <20230710071136.jiedze443q7o5vsp@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lrUKE2kZsOqoP5bo" Content-Disposition: inline In-Reply-To: <20230710071136.jiedze443q7o5vsp@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --lrUKE2kZsOqoP5bo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 10, 2023 at 09:11:36AM +0200, Alvaro Herrera wrote: > I don't like this bit, because it means the .txt file is now ungreppable > as source of the enum name. Things become mysterious and people have to > track down the event name by reading the the Perl generating script. > It's annoying. I'd rather have the extra column, even if it means a > little duplicity. Hmm. I can see your point that we'd lose the direct relationship between the enum and string when running a single `git grep` from the tree, still attempting to do that does not actually lead to much information gained? Personally, I usually grep for code when looking for consistent information across various paths in the tree. Wait events are very different: each enum is used in a single place in the tree making their grep search the equivalent of looking at wait_event_names.txt anyway? The quotes in the second columns can be removed even with your argument in place. That improves a bit the format. -- Michael --lrUKE2kZsOqoP5bo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmSsi70ACgkQnvQgOdby QH351hAAj7AlIcF+axa6KlDD+3wgUbOiwyjPmpnVWgIy81OuQF8F6NlKUKiWIVMZ MHvfVNGkI6LouMacWe9ln6CMv7iceIiApHcMnMlXfqoEAbt94rkLo+f3fHKzKSkh jFwQcXQDqZG+KKDqJEqVZuY3qU+pVAdL770Co1cUsq0XNOQk3Ozvdr4siNHm+wqJ MjTYLWt4ebL5VpxStyqcxR9KS4ft08E8l5+BnF+NEMDxuGUvc2sdHpi7BDXkBZXL DtDw11SmraCzYmLzuL8tsgKXQgkcx7y1aqZVBqVPb+RoPVYeedg7+qeJ5ngfQDyF T8fNbw/E4tx8C/qRazpof4myuJaMz8QzZq7Wcy5Z+iigNggI6JL7p25AnYqHoHAh aNV/+0zmmGptXyhf0wW46LAz+U6VqzsL/OCyDIxLz1ARGcP9PO7IQLyviC/Kn0Ki AwtNfZGoglsRW/R+P8vN2x/+BnsiWPj8AtAhyG5VVOp87YTrJ9v6pJyuXf9oAwJz tZlgYXgJsl09VvKgfEccfuCyLCE+0mVtduAEqy501pCAjet5beYuOFaJXBb6Z7a3 WAubUh09qTCTd8njn3TFgYX6oAf8QPIqOuH90IPvFbEqq2SuC3XdMUVGSn+7offs KbWa5zVP7K8buF+pCasGGhcrZbhY+/Jr1CJOyWa/GlZV4+m08Bs= =vkK4 -----END PGP SIGNATURE----- --lrUKE2kZsOqoP5bo--