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 1qd8U1-002Ik2-E0 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Sep 2023 12:15:09 +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 1qd8U0-00Aql7-7x for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Sep 2023 12:15:08 +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 1qd8Tz-00Aqks-Rn for pgsql-hackers@lists.postgresql.org; Mon, 04 Sep 2023 12:15:07 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qd8Tv-002z2n-H5 for pgsql-hackers@lists.postgresql.org; Mon, 04 Sep 2023 12:15:07 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-401bbfc05fcso14956155e9.3 for ; Mon, 04 Sep 2023 05:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693829700; x=1694434500; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jmUqYuCDakVTY80m8CFuPOuxuYsJlly40uB/RCxizOE=; b=OSj1vBq/Thmm8UHbBrXrqfxnMQ1HOYTXS5sE6gZyCnQRLiDkiO3Ea2Ju6jW9w0PjUs EsAtVLHQEqfSUF6+rlLl68kW8XHA2h9bT7lfHKdvrlVOn39jlIWhiM50UCAiWrTNERJs sZgIxE4Wt/bTQJ93ORLYM+6W9W7XAJp0MPq9cPzHVtNIPUpD4tu3oXBn98Fw39mbKYK7 WvfT7ZCj1JtpADbNg2ziVMlHvPtbSqTzGOD/03Q+QpN02bVg49uwbu5BG6WuyfHqp7Dn uqvN/JAu5WgznWV6D3Pbw+zJOFbIOvZM95eeY1gNN7p4n/KVUE07NIyyNB8Lzsn0086O Xocw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693829700; x=1694434500; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jmUqYuCDakVTY80m8CFuPOuxuYsJlly40uB/RCxizOE=; b=F+Hr4JWbe6WdhQJea6XbNxvvLDYLI/+gmGijaShQrkSS1nylQgoAw9ZrTE8TuzqFWp 2dj0ErkJz6zUkmqW6PjkZHfomfn7OnlTyZjH7zMKDsbDgixLnrHnwo/zQtvfh0d4trm3 XMickLZQLAtmuAsanx996isSWI3WfzSsCmKn/CjAbybyKctMBYaR7ND/2girph1wymzb fOeLBQOn4pSs15eVQiD317RNJW8EBa40+oPcV3DarZ8p6DnGOBEd1yaZRKzK+EiPwazL ssfqo9jtVSjluXlIJHG0+n+3HWPSTQqrJmAYorq7WjtKOVc3cE9OXaPcFW+SryT2ojzL KzHw== X-Gm-Message-State: AOJu0Yz1gkYCBLYm10GlhvqMeco5un5+ONkaK7HP0PkJLMIRWP4wtAzP YlyA2LLdEdiBpsTvi+rOJU5RXpK+xLE= X-Google-Smtp-Source: AGHT+IFs48MT1Y4srSQr/omz6sB3P1j6vmy1TZp6XWuHWdYE2Xqx/fqy5aGwJL+YP41OhUfFCaOcJQ== X-Received: by 2002:a05:600c:2283:b0:401:b705:ebe6 with SMTP id 3-20020a05600c228300b00401b705ebe6mr7336531wmf.32.1693829699429; Mon, 04 Sep 2023 05:14:59 -0700 (PDT) Received: from ?IPV6:2a01:cb11:55e:1700:2d70:65aa:31d2:c63d? ([2a01:cb11:55e:1700:2d70:65aa:31d2:c63d]) by smtp.gmail.com with ESMTPSA id c10-20020a05600c0aca00b003fc0505be19sm13937976wmr.37.2023.09.04.05.14.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Sep 2023 05:14:58 -0700 (PDT) Message-ID: <171299a1-6110-43ca-bb79-66b82e0baa12@gmail.com> Date: Mon, 4 Sep 2023 14:14:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Autogenerate some wait events code and documentation To: Michael Paquier Cc: Andres Freund , PostgreSQL Hackers , Alvaro Herrera References: <9682e829-4120-a3d5-4834-d909ad4b49d8@gmail.com> <20230716192120.t53prl2uruingo6z@awork3.anarazel.de> <6dc1587f-2ca6-4dd6-b389-94a05912fda5@gmail.com> Content-Language: en-US From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 8/29/23 8:41 AM, Michael Paquier wrote: > On Tue, Aug 29, 2023 at 08:17:10AM +0200, Drouvot, Bertrand wrote: > That may be a bug in the matrix because of bb90022, as git am can be > easily pissed. git am does not complain anymore. + # Generate the element name for the enums based on the + # description. The C symbols are prefixed with "WAIT_EVENT_". Nit: 2 whitespaces before "The C" # Build the descriptions. There are in camel-case. # LWLock and Lock classes do not need any modifications. Nit: 2 whitespaces before "There are in camel" + my $waiteventdescription = ''; + if ( $waitclassname eq 'WaitEventLWLock' Nit: Too many whitespace after the "if (" ?? (I guess pgperltidy would fix it). > I have double-checked the docs generated, while on it, and I am not > seeing anything missing, particularly for the LWLock and Lock parts.. I did compare the output of select * from pg_wait_events order by 1,2 and ignored the case (with and without the patch series). Then, the only diff is: < Client,WalSenderWaitWal,Waiting for WAL to be flushed in WAL sender process --- > Client,WalSenderWaitForWAL,Waiting for WAL to be flushed in WAL sender process That said, it looks good to me. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com