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 1pyntF-0003M3-Gk for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2023 06:10:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pyntE-0004wQ-EV for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2023 06:10:28 +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 1pyntE-0004wH-5Q for pgsql-hackers@lists.postgresql.org; Tue, 16 May 2023 06:10:28 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pynt9-0004xZ-Cp for pgsql-hackers@lists.postgresql.org; Tue, 16 May 2023 06:10:27 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f41dceb9d4so104348285e9.1 for ; Mon, 15 May 2023 23:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684217423; x=1686809423; 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=rMANK1HGNoiQ91+H/YJrzK06vCOn9biEkBfQsYTjC4o=; b=kdnenqYhyrcWd0S9sSM3YCkXL9kbH2Vnbdsm5WrWYjIWQFWG3sy1qZ7vfr98pW3Fft aaneLiLAOYeXK6P8/gzJDvKo9ICB4hWoGAJAFJ3rYnnzBQTgpHaHQRzlQ2AUp5LACofD q5ODIrXqknPZVuZnX1+K5OqAPE2yPJkOFnAvobv1P3gEXlUYf2DMuYCIm2kH7JNMsYZG mbW5NY+c4YTLm7vHZV8dwR775SASIJMGH22/B31SttcJhbQFCPGhZcb3/8ENuabtMw9T HuwTkdjmGP/9pdSFLaiLGGsZONsKexWo8VbvUgbhdSuAcccv4A5wZiPd0Al91enZc174 733w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684217423; x=1686809423; 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=rMANK1HGNoiQ91+H/YJrzK06vCOn9biEkBfQsYTjC4o=; b=RGe79gxkRznsTOe2tIu3kG/uerq2W/j1Ow3CRNLyFSKE6usw0RnrfGti8hbOQUMG3o 7AecxSeHhRpWYVp3XOF+aRxZO0KH2+g9M4Gd2arKq6HL+TkbrfJwe/b9atDICjdd06q7 3W7wsc6Aki6EVZpZ13T1eIAzC6u3XM80GRqNnw8EmrycdVR2RZDDIhsxvRogKlXhMzr/ 5KrJ3mTk7ujej3qkWsTyyVdkGyMqZhuq1QB/KRyykCtn4FbvUOnKhEFjboan8isft86p J6rJOX99TIDutyqlJ7GYKDtQYrN0i8fF+zPMBplt/NK6GgiZpWgPT8RZA6x5cf8ny2md s6qg== X-Gm-Message-State: AC+VfDy7tPMV5fTAgLerJqon30VJFnZBEgyPI3xt1wskm3AEit0hZPcr p94hCP2TAFNipEbKWfNOVw8= X-Google-Smtp-Source: ACHHUZ5D4pVwNVgOIDPg/AIViz/AaoszvXVTkm6dBT7h+jDnNUsaVzSRJrVI6d2//g/pM725ZqEy5w== X-Received: by 2002:a7b:c3c9:0:b0:3f4:27db:d with SMTP id t9-20020a7bc3c9000000b003f427db000dmr21779330wmj.17.1684217422674; Mon, 15 May 2023 23:10:22 -0700 (PDT) Received: from [192.168.27.6] ([54.239.6.184]) by smtp.gmail.com with ESMTPSA id l6-20020a1c7906000000b003ee74c25f12sm1038185wme.35.2023.05.15.23.10.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 23:10:22 -0700 (PDT) Message-ID: <30ecef6e-0bbc-c5c3-5cf6-37c2001e4df7@gmail.com> Date: Tue, 16 May 2023 08:10:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Introduce WAIT_EVENT_EXTENSION and WAIT_EVENT_BUFFER_PIN To: Michael Paquier , Andres Freund Cc: PostgreSQL Hackers References: <20230515182956.5lavflljhpgpokxc@awork3.anarazel.de> <20230516001716.iy7no2q77vwdt5w2@awork3.anarazel.de> <20230516010102.jwmsuaoynz6zfqmn@awork3.anarazel.de> 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 5/16/23 7:14 AM, Michael Paquier wrote: > On Mon, May 15, 2023 at 06:01:02PM -0700, Andres Freund wrote: >> On 2023-05-16 09:38:54 +0900, Michael Paquier wrote: >>> On Mon, May 15, 2023 at 05:17:16PM -0700, Andres Freund wrote: > These are the two things refactored in the patch, explaining the what. > The reason behind the why is to make the script in charge of > generating all these structures and functions consistent for all the > wait event classes, simply. Treating all the wait event classes > together eases greatly the generation of the documentation, so that it > is possible to enforce an ordering of the tables of each class used to > list each wait event type attached to them. Right, it does "fix" the ordering issue (for BufferPin and Extension) that I've described in the patch introduction in [1]: " so that PG_WAIT_LWLOCK, PG_WAIT_LOCK, PG_WAIT_BUFFER_PIN and PG_WAIT_EXTENSION are not autogenerated. This result to having the wait event part of the documentation "monitoring-stats" not ordered as compared to the "Wait Event Types" Table. . . . " Thanks Michael for having provided this detailed explanation (my patch introduction clearly was missing some context as Andres pointed out). [1]: https://www.postgresql.org/message-id/77a86b3a-c4a8-5f5d-69b9-d70bbf2e9b98%40gmail.com Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com