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 1qHCz4-0004pJ-79 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jul 2023 00:36:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qHCz2-00040z-L5 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jul 2023 00:36:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qHCz1-00040Y-46 for pgsql-hackers@lists.postgresql.org; Thu, 06 Jul 2023 00:36:32 +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 1qHCys-002RAB-EY for pgsql-hackers@lists.postgresql.org; Thu, 06 Jul 2023 00:36:30 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 220075C02BB; Wed, 5 Jul 2023 20:36:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 05 Jul 2023 20:36:18 -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=1688603778; x=1688690178; bh=FS PZOfVafCxCeo9UqpHRw5spDNbpEEa5s27bD7ErHi0=; b=Vtg3M2IVMmWlS9NcbU 61Fvl5swldhjH5L4aSSEFprySnHd10qilRG0G9CNgBgZuz+YrXtKPjBg6eiYzRWs 2NstFn9hlMrNuoF+Mqy51qfeSirAXMhnjPh22ox3UBo6oKg5DGd8y9mCKDIFzpgf ita7PYXQ54cwZUKL32O/5upude9Xz5P8Jjpf1139r1l/XJyDaKr8OlXqT6rPM9ls P22+weIQYoaAF0/yo+odsc0TRL1EWGigOx1HDo3t+eSQ0xR4MoyRGWo2JRSdcqHV dTcdYBqHnU9RZuBWjS1VB24zqbpDGWPR6caGBOv7ljxTRq9UUKNvH+Z9jgXOUKYQ chrg== 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=1688603778; x=1688690178; bh=FSPZOfVafCxCe o9UqpHRw5spDNbpEEa5s27bD7ErHi0=; b=G+FgLBvhg9Ma7gAo12ozsj30PEmd+ 8NO1hx/gent+QcTC4voyvkNpbxuCqc2qKMOYNylWQ1fQvE0gj3FtLrFnIODi3bj6 q8hQyGHYQKmiaMyHOHHCO7CM8q47Bm8OQeAKJzz4AqdhPXgHpGzPCXfrZdLQkEaS WozTsRMXLXcdwapEQzRS1XUc5qKhZyuhLpUzVkzWa/+gyL40azyxFFyLXs6Hl0X6 EEwV2LhcFekVr8b2rccMIQVW0dp8eUAiHmRi3VAu0cP2N+C8YMA+kUL1xC0nnxMT /6rH/cLKYfPoZ7blCoiYbsBJHJ2q7+M0b4paPbkl2tWyACcpKPhsmkhXw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekgdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Jul 2023 20:36:15 -0400 (EDT) Date: Thu, 6 Jul 2023 09:36:12 +0900 From: Michael Paquier To: Andres Freund Cc: "Drouvot, Bertrand" , PostgreSQL Hackers Subject: Re: Autogenerate some wait events code and documentation Message-ID: References: <976f4eb1-cbc0-9616-ec26-ebb4a252315c@gmail.com> <69588eaf-02d7-95a8-0da4-3e120de16a59@gmail.com> <0b3cdac7-f078-61a6-76e0-99db7aae78ce@gmail.com> <20230705215939.ulnfbr4zavb2x7ri@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JoAN1J6bJ13uIK6x" Content-Disposition: inline In-Reply-To: <20230705215939.ulnfbr4zavb2x7ri@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --JoAN1J6bJ13uIK6x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 05, 2023 at 02:59:39PM -0700, Andres Freund wrote: > Rebasing a patch over this I was a bit confused because I got a bunch of > ""unable to parse wait_event_names.txt" errors. Took me a while to figure= out > that that was just because I didn't include a trailing . in the descripti= on. > Perhaps that could be turned into a more meaningful error? >=20 > die "unable to parse wait_event_names.txt" > unless $line =3D~ /^(\w+)\t+(\w+)\t+("\w+")\t+("\w.*\.")$/; Agreed that we could at least add the $line in the error message generated, at least, to help with debugging. > I also do wonder if we should invest in generating the lwlock names as > well. Except for a few abbreviations, the second column is always the > camel-cased version of what follows WAIT_EVENT_. Feels pretty tedious to = write > that out. And you mean getting rid of lwlocknames.txt? The impact on dtrace or other similar tools is uncertain to me because we have free number on this list, and stuff like GetLWLockIdentifier() rely on the input ID =66rom lwlocknames.txt. > Perhaps we should just change the case of the upper-cased names (DSM, SSL, > WAL, ...) to follow the other names? So you mean renaming the existing events like WalSenderWaitForWAL to WalSenderWaitForWal? The impact on existing monitoring queries is not zero because any changes would be silent, and that's the part that worried me the most even if it can remove one column in the txt file. -- Michael --JoAN1J6bJ13uIK6x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmSmDHwACgkQnvQgOdby QH09dxAAgmRglJpuxFtJy36iJiG93DiCuBpQmi9/UAtOuQsBjhwFXm2qpYmRUa1C nUnYCpBqdLBVvmagoFC6m28YP0WgAwgHom7X1hWGVptK+JvmRnzkNwWWrEpJvQol fJfSd7Ant/w8EZwX1COHyNEC4vue5u1/uhZN6PcPg0+hAMCKsH3ewKQZdVI07+xe rggOoipHFFlYV4KpHRCAZNI7f18YULJTTSo6/B/rV7fpEKHCKvYRVwxVPr7K+bpd WL55BvSERl0gRHezw9MXfX5W+ppgLqflOi8SPD1GNLEbd78YJ/9at2fSIGu9gjdu OFIurHezo015taE7x8xzH0ASYQMFSo3tkdSSt+OjyFGUb27DB8k7SQP+qwNyMoje 6dK5VS7rXdLPJvee+bZULRdQFKcBgOf3pz2iV7ldC0WcsvlY4MZFueLoRLAP3T7x Mmyg8YQSkaRl9U865B1+gOOrmkkHDmmNIhYqX/jRuzEvrpFVtBe+7X7EHKL3W8/x HX97RWgVk3E1sqY9l/jWd2q4oMZwQFWeXzWZCWENIQ2rDks0R3nywXrcfkDi+Chw oYsobILn0NbItGnaZ6PtTUN3HtVYl5amOyUUcrLG7lBaZD+lAFscr+NLMmubP64m +/Y3+KaMxtLMuYkpGuc79Nfg0Z6qEYu9z+6HCwW6g5j6P70RyCY= =C+SF -----END PGP SIGNATURE----- --JoAN1J6bJ13uIK6x--