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 1qIOxz-00082z-Tu for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jul 2023 07:36:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qIOxy-0006N7-Nd for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jul 2023 07:36:22 +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 1qIOxy-0006My-0a for pgsql-hackers@lists.postgresql.org; Sun, 09 Jul 2023 07:36:22 +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 1qIOxv-0033fB-3i for pgsql-hackers@lists.postgresql.org; Sun, 09 Jul 2023 07:36:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1E03B5C012A; Sun, 9 Jul 2023 03:36:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 09 Jul 2023 03:36:17 -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=1688888177; x=1688974577; bh=DK UDoiaHWSYwpFq764RmQQNsJZeZAX9Dwf3XZgUdDt4=; b=BUGNUSCkZMIWMn99Lj 6C6FTXKBn1AyN5WvwdyaiD+BqxFiBgEtIsKQvSUu2IJ+8q/NcIBaBiVfuj7RS22E ZlpZr/e/WaBfMWhNG0WykbGlUmQloICC0jf3McZqUcj5JzZXAal/+/lyeYoUIO4Y aLAAuHT1bZosWvq2l/cXxkNT6eWfJqm0/QTtzONmFOAdY/WqW88OlVjiWR0SXgHZ FlJK7TOj61dZdPs6T+dkpRxadSmjPFaMBIMcn8ZjWDbIQR+7cHgaAXjJy6lkV+d6 oiyETuAi3MCcWZHaJe4fAUCFvAqP0Q2su/YQHm6DAcQOE2kt8CmgL5AyyOn7rES6 wPbA== 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=1688888177; x=1688974577; bh=DKUDoiaHWSYwp Fq764RmQQNsJZeZAX9Dwf3XZgUdDt4=; b=Wc1OPxEtzurSKbVaCYEjll0urNqf2 ig1n98JhHH1TXlDjWwrKJ+d9JvFELZ15/vJdc/K0+ovAC8QucDd5hYzkWzayJIkT yZ9jrIn6fpmnkOrwoI5lQbLCC+I2tyU4xhtczBHR1pV7396uTn2eSpPfmNZ5hYm8 5bP5QvQL+MKw0VYRzRNWz1r23kQn+i8f3xtBGjPM+r8B9ef1G0P+bIeu3+rJ6qbr 9dhoHAF23RCaCxoAcMfxiKwic2R9w5zFALTdIXfi1YGSuxmiNKGqVgZNeaLj+PFm KRZWJ0nfqm6HNenmGYeMn4jRt8GPE1+9DGUHfGspd3ssAZjSMOjqMDUVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrvdeggdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 9 Jul 2023 03:36:15 -0400 (EDT) Date: Sun, 9 Jul 2023 16:36:11 +0900 From: Michael Paquier To: "Drouvot, Bertrand" Cc: Andres Freund , PostgreSQL Hackers Subject: Re: Autogenerate some wait events code and documentation Message-ID: References: <0b3cdac7-f078-61a6-76e0-99db7aae78ce@gmail.com> <20230705215939.ulnfbr4zavb2x7ri@awork3.anarazel.de> <20230707011943.qxbj3vj2iwsfgqvq@awork3.anarazel.de> <1f74adab-5ed8-450a-853a-f0b4bfe0e751@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="iJyskfGtxjEuphZA" Content-Disposition: inline In-Reply-To: <1f74adab-5ed8-450a-853a-f0b4bfe0e751@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --iJyskfGtxjEuphZA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 09, 2023 at 09:15:34AM +0200, Drouvot, Bertrand wrote: > I also noticed that you now provide the culprit line in case of parsing > failure (thanks for that). Yes, that's mentioned in the commit message I quickly wrote in 0002. > # > -# "C symbol in enums" "format in the system views" "description in the= docs" > +# "format in the system views" "description in the docs" >=20 > Should we add a note here about the impact of the "format in the system v= iews" on > the auto generated enum? (aka how it is generated based on its format)? There is one, but now that I look at it WAIT_EVENT repeated twice does not look great, so this could use "FooBarName" or equivalent: + # Generate the element name for the enums based on the + # description. Camelcase strings like "WaitEventName" + # are converted to WAIT_EVENT_WAIT_EVENT_NAME. -- Michael --iJyskfGtxjEuphZA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmSqY2sACgkQnvQgOdby QH24zg//WMd03ucgRlWwFNxrv2dPSUFRSpLkYm2BFEs0oQbria3/iDazKW8+143y DY3oPhXJq4GbGF5LN51W2C+acd286j62E8qingTFhU7Rrr7zsRip5qfwc8CNelRM UnPMxFHCEpL9C9rYQEEHwzsJEu4J7zTNbWDRY0gSJiG9408LpmpRX8hCiHx2Zua+ m6NbAC2lbUQC/pOSz7Bm4qZGrmN7zi1C1G6rKiES921BSs5fW1SyLdDrezA9imv8 yMKmXJwQUAr1guyAp5ijXTX44ZaIk/HTTp/uOFTdUOcf0hrrR60Dj7EbvR3hi2Co DNTkIBdu4WuJDPI692w0tKmgCj/i1suV1tveK/zleN8e/KLgWg8sIYPVV2uhea0h S2kGiMJGBWrG59LcTaxqwEusLR7t7YgQvAgyIAICXO/+R77TbKbICZN2h//YCnr2 MwHqv9N1SplrI3kOybEmBbdDbyXRmViFHJvD6V2dx+4nRgxvnO/aaHysAfDlGlpD 9poF2IYVO2v96/Hh7iZNyWhER5sa3X1tiVTFQF6DflGvPxuU1o9nZH5p2x11xTiV hIqY15yn16HKVZs+HdD9iAWiDDxpireJKnnOzLPAR29GsCkZCOH+EM7V16MSLDWt fHSxcBTev8lOmzUFKtyiEUMzaPPDZnao7UnvRdR7l+IbqmDDBIA= =2Iwo -----END PGP SIGNATURE----- --iJyskfGtxjEuphZA--