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 1q7Thb-0007St-LC for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Jun 2023 04:26:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q7Tha-0003EU-Iv for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Jun 2023 04:26:18 +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 1q7Tha-0003EL-9G for pgsql-hackers@lists.postgresql.org; Fri, 09 Jun 2023 04:26:18 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q7ThT-0010ue-05 for pgsql-hackers@lists.postgresql.org; Fri, 09 Jun 2023 04:26:17 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-977c89c47bdso251463066b.2 for ; Thu, 08 Jun 2023 21:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686284769; x=1688876769; 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=kLtJFX3H1kaqoBAdCdPYzT9Odlv5ue/2t9WiTmAxO3k=; b=UnD87gsdjLsUXILddWPS/S1kOIHRd3EN4JocvUpiebyBK3A0J/RuybSFgSOqoZF6be dfKeLIFEvEC1JdNW+yWs21JoutL7gItfQL2TJBZz5VyDxVmwfcyYKjO7Al2ckxFGxDpm 9Nap0Mg5q8uqGl58/6AsmSDEzBKLfDq+JfgnqEqAzEgXM6uiYB/RCC9BzAUX9g9Fn60J xGZzyfvmy4JTX/Ylu59OFVRsm/gQM+WbSeOqFTG9mUw8ihXENpmhUsNP6nTcO3J1x8jX gCeu674pkNoI8pCGpeW6GfO8Wxp25KOftUchUWjoNlPS5rKkxvqypRj830KArC4FQeQU ljVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686284769; x=1688876769; 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=kLtJFX3H1kaqoBAdCdPYzT9Odlv5ue/2t9WiTmAxO3k=; b=MHQBxVOI0+h141s7PetzAqz8T035ckyYEfP4EGZmBQsIGXlkAiZjUNbFe5MKVSCb2r JvPAYQV0U04a4zPWknd3vzZOXtq1vl7GSKjNP+p3nT3+H9TdbtPH2dHuxfmbBDRCW3No 6ag4Z13/lVO9EacZUlzGH+a+eQg2y3QNTH8xizQAXeX4MpI4V1IDrbBvkEGRsvFJrerU dpDlF4+QgOQS4tiykLHdcoHtpW5QY0SQBPyuDcWFrRqdSrhps2lL9MM3IyDVyXDsFFZT RtcEpecdywz1EkIY/oM3pSmZ3WZVW0xZdzrZ3YPD113QSOPDo+MDaaNgRqWS3ujLmpqj M9Qg== X-Gm-Message-State: AC+VfDzNAbD3CY7HjcxGi7+CaRa1DyvqxRU2LdAcwRpyXQ+OdTNnmWRZ nGsL/GS5D8UUWWt9ToUJbOdRs3gZ7Mtn7w== X-Google-Smtp-Source: ACHHUZ4LRAVvcbyIArFtish4L3YUh+AvubKedTyDuVhekgmm5SNWh1E7MhyiKUkexnDq7mGeZ+H5TQ== X-Received: by 2002:a17:906:9b8f:b0:96f:5cb3:df66 with SMTP id dd15-20020a1709069b8f00b0096f5cb3df66mr740906ejc.18.1686284769362; Thu, 08 Jun 2023 21:26:09 -0700 (PDT) Received: from [192.168.22.8] ([54.239.6.188]) by smtp.gmail.com with ESMTPSA id u3-20020a5d4683000000b0030aefd11892sm3259096wrq.41.2023.06.08.21.26.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 21:26:08 -0700 (PDT) Message-ID: <351810d2-120b-9b90-a680-cce6ac1c0fa7@gmail.com> Date: Fri, 9 Jun 2023 06:26:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Introduce WAIT_EVENT_EXTENSION and WAIT_EVENT_BUFFER_PIN To: Michael Paquier , Masahiro Ikeda Cc: Robert Haas , Andres Freund , PostgreSQL Hackers References: <20230516001716.iy7no2q77vwdt5w2@awork3.anarazel.de> <20230516010102.jwmsuaoynz6zfqmn@awork3.anarazel.de> <20230517233832.si5zpq3qnxmx3swb@awork3.anarazel.de> <81290a48-b25c-22a5-31a6-3feff5864fe3@gmail.com> <4420c7fb5bf0894ce92d6857a8d041ed@oss.nttdata.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 6/9/23 1:15 AM, Michael Paquier wrote: > On Thu, Jun 08, 2023 at 10:57:55AM +0900, Masahiro Ikeda wrote: >> (Excuse me for cutting in, and this is not directly related to the thread.) >> +1. I'm interested in the feature. >> >> This is just a example and it probable be useful for other users. IMO, at >> least, it's better to improve the specification that "Extension" >> wait event type has only the "Extension" wait event. > > I hope that nobody would counter-argue you here. In my opinion, we > should just introduce an API that allows extensions to retrieve wait > event numbers that are allocated by the backend under > PG_WAIT_EXTENSION, in a fashion similar to GetNamedLWLockTranche(). > Say something like: > int GetExtensionWaitEvent(const char *wait_event_name); +1, that's something I've in mind to work on once/if this patch is/get committed. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com