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 1rmMtQ-007S6T-Fs for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Mar 2024 23:59:48 +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 1rmMtO-007ans-Tx for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Mar 2024 23:59:47 +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 1rmMtO-007ank-KW for pgsql-hackers@lists.postgresql.org; Mon, 18 Mar 2024 23:59:47 +0000 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmMtL-005GoB-Ul for pgsql-hackers@lists.postgresql.org; Mon, 18 Mar 2024 23:59:46 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 80E841380071; Mon, 18 Mar 2024 19:59:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 18 Mar 2024 19:59:42 -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=fm2; t=1710806382; x=1710892782; bh=XX2tUEOdhx vS4UAAmRRUmYsILHku8h8SEG884HdoVl8=; b=cTJ2z0paagJ/FJEEqBNRs0XPRs oQpG05q0j8ZRwtkgvX4RJVKhXuie60ST5ptlMkfAyPE2SbN7dazfzYLcInlMQrDL 3NWPLfNdgcl3SgGijcEQ2XOh10ubLZAxIK4xdsX65lW2fGphqgHm90IGuJ/BS78l PVrrZseTEOer7WKkdgIAn/Ad+o6r2tpKE7zxigqS2Tx7timOzHolI63CrCKZdmG0 3zs+4Vu9vOIEQeYhiqeZNtBHDWr8RJmMLeTRQG5f4g29IBE+kK9nsC1wx0SbyZDx JKDyqxHArMVnaL7oFkP+DAik2It5FwdNU55vmZaK0e3Cb17g/ZYstenzgCFg== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1710806382; x=1710892782; bh=XX2tUEOdhxvS4UAAmRRUmYsILHku 8h8SEG884HdoVl8=; b=gdc6xe2DMckbW23JQ34DtVoe+N//Zn7WPoEeOv5wI7yM kZZ7vkflmZ8Qjtv+ZUdAv0LRmM1pRliAhi9UkM377yA4XdPh4dy9UXrd7umQCMK/ V+l/2jN9aPNoJx7NFwRkGekVknbDJ+OJCPpR6AaVALgTzpsKdBHTqHpCfnr36DcX I+Mxj8Pcu7+5XlzOrSy0SEhhz2G+5FSm81+mQIJAf/cDO9bZPq4bGhaaMa/tpOoA PbZqGJaqZ6YzMtDt+vyAJx4TS4zHT28KY3WEamHTpFJ9fP8ljQE4AXzRNRtJaPa4 z+DYPMeSqkC+lExwsOhdOu2qIejH7E7TXKNMUDH1Pw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeekgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeegffejvefgveduvdejtddvtdei jeehudeuledvudeftdfgfeejvdekveekiedvvdenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Mar 2024 19:59:40 -0400 (EDT) Date: Tue, 19 Mar 2024 08:59:30 +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: <202403180924.rqdpwo4b3bd5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ah5r4ICclNTp/aS/" Content-Disposition: inline In-Reply-To: <202403180924.rqdpwo4b3bd5@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --ah5r4ICclNTp/aS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2024 at 10:24:00AM +0100, Alvaro Herrera wrote: > FTR I had a rather unpleasant time last week upon finding a wait event > named PgSleep. If you grep for that, there are no matches at all; and I > spent ten minutes (for real) trying to figure out where that was coming > from, until I remembered this thread. >=20 > Now you have to guess that not only random lowercasing is happening, but > also underscore removal. This is not a good developer experience and I > think we should rethink this choice. It would be infinitely more > usable, and not one bit more difficult, to make these lines be >=20 > WAIT_EVENT_FOO_BAR FooBar "Waiting on Foo Bar." >=20 > then there is no guessing involved. This has already gone through a couple of adjustments in 59cbf60c0f2b and 183a60a628fe. The latter has led to the elimination of one column in the txt file, as a reply to the same kind of comments about the format of this file: https://www.postgresql.org/message-id/20230705215939.ulnfbr4zavb2x7ri%40awo= rk3.anarazel.de FWIW, I still like better what we have currently, where it is possible to grep the enum values in the source code. -- Michael --ah5r4ICclNTp/aS/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmX41WIACgkQnvQgOdby QH0aexAAhqVl8o2Loej5GQJr/b48cAUkuZMBMm8+RDjfHx3ZlXCg8zSh8EysVZy6 F6hWmk+gbbv5huTwJwFxExOhV7Taavpup3r5VNuAbWjPE+9txbFGSTSGlaRAG8my vo4/mj0qDqUO6nzuH5IXNdeMipm9i2zmXeiVTA87RAW6d42IicJvTFRJ1Bt+oEjP ejQYTfx+E04UF2n9GevMdnDt+jrM2NPYX9txysNe8eNR0HsHzNwLkSMYrsQOO1i3 WjzqTBu5OZe+fYoNRHtI5r/P4LL+Dc+BEiENH7X3+3Zwmk9/rO5vwBN9W+le5N+K l6P9rUzmxHEXPr7reWCutbpKcj6sGDfzHNiSeC0JDT7ggqG80Ar7iJ2I0rBRuNw3 cTBbtscVWhHCWjieDJW1M1sc2txKt0tmGXyFicKkL1RppvgFLKYg0m6gQ2wzdrsF FSJMp0klmQUJpKPCg5wFK9q0Q3ECpsxx1uuPoOP8rC4IbdEdW3HGTof0CejLFWQU 8q6Ky1Z4GrVRvEVDKUcMslRRHYS8b/4zfSDUQZF+Mg0/lWARTJBGO0xu/yHzsSfV slN8IosUXc9r8idYpZLCWfh9UTAMvepHpfhZV1TNQRmMddt0rSGoTe8pNu4OCZpC v898kvjo0Y6Y/K6Kq8QWafcbNnWnvuBgyKwtGj0fuO2+VQbXzTY= =DizL -----END PGP SIGNATURE----- --ah5r4ICclNTp/aS/--