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 1q7Z5q-0003tI-Mw for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Jun 2023 10:11:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q7Z5o-0007mD-DN for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Jun 2023 10:11:40 +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 1q7Z5o-0007m3-1b for pgsql-hackers@lists.postgresql.org; Fri, 09 Jun 2023 10:11:40 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q7Z5h-001C3A-H4 for pgsql-hackers@lists.postgresql.org; Fri, 09 Jun 2023 10:11:39 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f732d37d7cso15307835e9.2 for ; Fri, 09 Jun 2023 03:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686305492; x=1688897492; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oudYQoTUO2yUzl1Zqr3cwSuvbqVwx0KC9EuKvrxF3W8=; b=ooT6Mo8BzBn1MahH43dMvOCf/M55wp+hCavwGs0AooKH8ytYa0fslyeC2QJqtVhYI1 n7bilYOrH8lAI3VEltygrw0aBc/6YMXDt7PpruOQTiqZToNQVZRmfT7L70vy/DMkokc7 aha7qv1hdGBiMnh4HZWYDLVcVvfWm2eCEe8TqCMmxNwgx4xqTMvrhZAy48KPYx4/nCpY RuPQ7jvWHyY9FPq6ekemBUjebGeGMBaPpHi+k7gv226sm+f37Me5nMRoFAl+TFkvVq4I 0SEQZvNKufP7cybqB3BGqYpzZAtL88qCFUiT3e2MUkWtBqn9WX+V15onraFhDrdylTGE kXEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686305492; x=1688897492; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oudYQoTUO2yUzl1Zqr3cwSuvbqVwx0KC9EuKvrxF3W8=; b=gJhIMZA0EZdEEcPuqmLJJC4jiN7q46c0w1B29xVBDjmKNY10cvdLwCl4zKBnnl0xMI fodlJ0i137dNfZBoXq/U/gPxNGBwEOl4fu+vfWZ3xk6J9BkypqCQcaZ1XaX7Se9aNtKE 0+hea7bbRbKIxY+JPT7/jSelQ3eL16pYD11yq/yHm+LL+304PG+5JUp9LYjwmtXI5Sgm MqEwA3JAJU/iNy74wtHaWRXB+dYL78HCZearFmZB7TwdO+oaoBlC2VbfsG9y9POVT2R3 Tuy2GbK5Pjq0V6pLYSREv/wH202pEnkl+P66tWQtC/hpTC9vBBC+73uH/LHFOQPk0uLY FksQ== X-Gm-Message-State: AC+VfDyG+DGZZfSnNN5rshJwgau0fAkmBF6Ai4be+NlJq7HafHnQU0Sy fdWwwPLvPNwcgU9bb6OcMrV8FOgaCrWTfA== X-Google-Smtp-Source: ACHHUZ7ELsPmw3X+6Ok1xuNzbKUxjlNHY84/cMb2yICk7BSotN4QTCAwO+dLD9UiErhbTTqiB/SEaQ== X-Received: by 2002:a7b:cc12:0:b0:3f7:f398:e1ca with SMTP id f18-20020a7bcc12000000b003f7f398e1camr826302wmh.26.1686305491830; Fri, 09 Jun 2023 03:11:31 -0700 (PDT) Received: from [192.168.22.8] ([54.239.6.188]) by smtp.gmail.com with ESMTPSA id x17-20020a1c7c11000000b003f809461162sm549146wmc.16.2023.06.09.03.11.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jun 2023 03:11:31 -0700 (PDT) Message-ID: <60a9e0da-864e-4fee-e205-de00251f30a7@gmail.com> Date: Fri, 9 Jun 2023 12:11: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.12.0 Subject: Re: Introduce WAIT_EVENT_EXTENSION and WAIT_EVENT_BUFFER_PIN Content-Language: en-US To: Masahiro Ikeda , Michael Paquier Cc: Robert Haas , Andres Freund , PostgreSQL Hackers References: <20230516010102.jwmsuaoynz6zfqmn@awork3.anarazel.de> <20230517233832.si5zpq3qnxmx3swb@awork3.anarazel.de> <81290a48-b25c-22a5-31a6-3feff5864fe3@gmail.com> <4420c7fb5bf0894ce92d6857a8d041ed@oss.nttdata.com> <351810d2-120b-9b90-a680-cce6ac1c0fa7@gmail.com> From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 6/9/23 11:20 AM, Masahiro Ikeda wrote: > Hi, > > On 2023-06-09 13:26, Drouvot, Bertrand wrote: >> 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. > > Thanks for replying. If you are ok, I'll try to make a patch > to allow extensions to define custom wait events. Great, thank you! Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com