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 1qIjp3-0003qs-RZ for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jul 2023 05:52:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qIjp1-0006f0-9I for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jul 2023 05:52:31 +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 1qIjp1-0006er-03 for pgsql-hackers@lists.postgresql.org; Mon, 10 Jul 2023 05:52:31 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qIjox-00318W-G0 for pgsql-hackers@lists.postgresql.org; Mon, 10 Jul 2023 05:52:29 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fbd33a57b6so53156075e9.2 for ; Sun, 09 Jul 2023 22:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688968345; x=1691560345; 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=djUBpJiP+f5V1Q6c5Xv5EyiQYIFTG1WjvVkZ0Fw9AY4=; b=Do6R/GHQMOoUmGUvx/Ngl7VqOdjgBKoAmvJoSIU5g8gDfuZ9Rtyjo3mKIezWnNSNf4 0bNskBMPLmEKRanMA+awJNJSTyk4rYKyvm7saNBDPO/5d8VjqYp8s2mx9FU93Z8OPL2N VQPpqoV8iXJRR5isEe3m9e5p/EvhdlHRtevPCAxfNpYsEHmf/HEJSpqWYujT6cxVdApY YakUJIqYaoMoMsauqB0swfDlslzB6I3cgUV0H1iwAQO1CJApLL3IyP8gkRt0HvpDnxOR oobhHbA8PlJNlcwctJO308y7DNwT2BaotfuvKPZglXIHPs1NXMuq4IL8pUmBaiiUWsaX p4nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688968345; x=1691560345; 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=djUBpJiP+f5V1Q6c5Xv5EyiQYIFTG1WjvVkZ0Fw9AY4=; b=M/IQtfhgO2JTlATv9P/opWcVqzADHYy0NI0APDsg4vYWO+QUVMGeVPDGTFN7U59VzF W6oMqjlDgpFSi4gf2Pz4nAo4/B7vrINZnniprnqeCdPzGWtjtfDUw4ewwwRZmYGerDIh MG4qYRDti5KCnTOVkDlMMKk6cqEQaoDMmjWs/mq6eWVJfi3dUB478RwrRpAVEoAwuj2L S3pmry6EWQVNsXhPsekZDLHAKvh1wqy20AGFTPPFRLm4xV22IUIXKxcq0huR35UDNLBX fXcQPbw1ebnWKfGOy7dRNey5B0AmMIGpIwSkE5g/F4wsL5dAEJW8AUabVrlFFnt11zZP A8IQ== X-Gm-Message-State: ABy/qLYlIpS2xqTnTEb62ez66M8JZJ4h0t+eIRWO3KCYZJEw1CGlIqHg wEvEeuOl/TPwX+vu0t0jmPw= X-Google-Smtp-Source: APBJJlFI6uCw/89Sx8g0Qi+ZTArRHsYvPl1F55vycHV1je1gGI9f4LUS1ry/Zv+ZN7ww57y4MizMDQ== X-Received: by 2002:a7b:c84c:0:b0:3fa:7b44:7195 with SMTP id c12-20020a7bc84c000000b003fa7b447195mr14085456wml.10.1688968344726; Sun, 09 Jul 2023 22:52:24 -0700 (PDT) Received: from ?IPV6:2a01:cb11:55e:1700:5553:6729:84a1:4a8e? ([2a01:cb11:55e:1700:5553:6729:84a1:4a8e]) by smtp.gmail.com with ESMTPSA id o6-20020a05600c378600b003fbb9339b29sm9315397wmr.42.2023.07.09.22.52.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jul 2023 22:52:24 -0700 (PDT) Message-ID: Date: Mon, 10 Jul 2023 07:52:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Autogenerate some wait events code and documentation To: Michael Paquier Cc: Andres Freund , PostgreSQL Hackers 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> <9682e829-4120-a3d5-4834-d909ad4b49d8@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 On 7/10/23 7:20 AM, Michael Paquier wrote: > On Mon, Jul 10, 2023 at 07:05:30AM +0200, Drouvot, Bertrand wrote: >> Yeah there is one in generate-wait_event_types.pl. I was wondering >> to add one in wait_event_names.txt too (as this is the place where >> no wait events would be added if any). > > Hmm. Something like that could be done, for instance: > > # src/backend/utils/activity/wait_event_types.h > -# typedef enum definitions for wait events. > +# typedef enum definitions for wait events, generated from the first > +# field. Yeah, it looks a good place for it. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com