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 1qIj6r-0001pW-Dx for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jul 2023 05:06:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qIj6q-00008N-9V for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jul 2023 05:06:52 +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 1qIj6q-00008E-0F for pgsql-hackers@lists.postgresql.org; Mon, 10 Jul 2023 05:06:52 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qIj6n-003Das-35 for pgsql-hackers@lists.postgresql.org; Mon, 10 Jul 2023 05:06:51 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fbca8935bfso41243255e9.3 for ; Sun, 09 Jul 2023 22:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688965607; x=1691557607; 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=PpuvkojkfI9NsA407hZBQbg6RXncUkNDtP6gOaPiEf4=; b=Zu7IoOIPEXeBU4osEvhZJYl1yuAMQVlbPK51cDBl+/yWWAA800k7txBHCVb/IJOZSH 0oCdA5htzTDOc0anleIigbW27C0fgnX+2G6RPENEyykRH2A+e81VvZPR6cBrRc8iq6Bs M5QN+oYcjJuaArNDLNmaD3IEmW9jtRYk8DNyFk8Ysf17RocABjnEQlzA/l7Qy6Lgk2fT m5iBn/qV4uSwHlqWszkwKMBHnIS90RT82UW4VIuvB5LxtgXWkdG6c2jM5QUt6LgvovIs d+wWUw7Bj6PsbTkWG5A78+H8MU8/OFxGor2tO4WR9Z9rNLxRD7IqKLDsnVCCDHXLSNKz 1y3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688965607; x=1691557607; 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=PpuvkojkfI9NsA407hZBQbg6RXncUkNDtP6gOaPiEf4=; b=ZcpUEpw3j7Z4ZGtKDLECwsFk0l2zjm1VDr7hFOFswVwTMuGEgpuljTonl8AN8AbvnX MbmvLqtogiD+xLewcV4W19ll2uK+x6njiQ2A6pX/Ua7AKASfvdNUJdG72+Z9cneou6oO cvyNtKi75/ctym3G7g5/4l3FGD4tdQPFK51zjxhZaQi/scjO5xoaQDTt62EiarvGy0+d ot6wmw4pF5TwahiLN+g2FRYG655EuSAS3f0NJPrHoj/sfZYPzHhRcFhYuopoXctYtCle g13VaxFogBKPGjWBvC1o4kOVO0sKq3QL5v/iDa5PHHCIvtlwuITs74zs3G5t/Y6t2LHN IqBQ== X-Gm-Message-State: ABy/qLY264elqWXcWtsdSZbkWMfGOW8ZxIF2oP+FeWp36I/yZ3uCkuBf 7tK9UB8qYSmwn6sGn1rlV1o= X-Google-Smtp-Source: APBJJlH2M9e7yqM/dMrFeIoD+Q4JsAIcHE3r9tef5uA6z1XSCkF2INY2/8iXhexnIPyT+6Sd/pq/kw== X-Received: by 2002:a1c:7914:0:b0:3f9:b1e7:8a4b with SMTP id l20-20020a1c7914000000b003f9b1e78a4bmr9578345wme.21.1688965606812; Sun, 09 Jul 2023 22:06:46 -0700 (PDT) Received: from [192.168.206.133] ([54.239.6.190]) by smtp.gmail.com with ESMTPSA id v13-20020a5d43cd000000b00314427091a2sm10544444wrr.98.2023.07.09.22.06.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jul 2023 22:06:46 -0700 (PDT) Message-ID: <9682e829-4120-a3d5-4834-d909ad4b49d8@gmail.com> Date: Mon, 10 Jul 2023 07:05:30 +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> 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 7/9/23 9:36 AM, Michael Paquier wrote: > 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" >> >> Should we add a note here about the impact of the "format in the system views" on >> the auto generated enum? (aka how it is generated based on its format)? > > There is one, 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). > but now that I look at it WAIT_EVENT repeated twice does > not look great, so this could use "FooBarName" or equivalent: +1 for "FooBarName" Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com