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 1q74uf-00054w-0U for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2023 01:58:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q74ud-0001OZ-Nu for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2023 01:58:07 +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 1q74ud-0001OM-E2 for pgsql-hackers@lists.postgresql.org; Thu, 08 Jun 2023 01:58:07 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q74uV-000oMq-Pc for pgsql-hackers@lists.postgresql.org; Thu, 08 Jun 2023 01:58:05 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id 8C92660207; Thu, 8 Jun 2023 10:57:55 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 08 Jun 2023 10:57:55 +0900 From: Masahiro Ikeda To: "Drouvot, Bertrand" Cc: Michael Paquier , Robert Haas , Andres Freund , PostgreSQL Hackers Subject: Re: Introduce WAIT_EVENT_EXTENSION and WAIT_EVENT_BUFFER_PIN In-Reply-To: <81290a48-b25c-22a5-31a6-3feff5864fe3@gmail.com> References: <20230515182956.5lavflljhpgpokxc@awork3.anarazel.de> <20230516001716.iy7no2q77vwdt5w2@awork3.anarazel.de> <20230516010102.jwmsuaoynz6zfqmn@awork3.anarazel.de> <20230517233832.si5zpq3qnxmx3swb@awork3.anarazel.de> <81290a48-b25c-22a5-31a6-3feff5864fe3@gmail.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <4420c7fb5bf0894ce92d6857a8d041ed@oss.nttdata.com> X-Sender: ikedamsh@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-05-19 16:48, Drouvot, Bertrand wrote: > While at it, I think that making use of an enum might also be an open > door > (need to think more about it) to allow extensions to set their own wait > event. > Something like RequestNamedLWLockTranche()/GetNamedLWLockTranche() are > doing. > > Currently we have "only" the "extension" wait event which is not that > useful when > there is multiples extensions installed in a database. (Excuse me for cutting in, and this is not directly related to the thread.) +1. I'm interested in the feature. Recently, I encountered a case where it would be nice if different wait events were output for each extension. I tested a combination of two extensions, postgres_fdw and neon[1], and they output the "Extension" wait event, but it wasn't immediately clear which one was the bottleneck. 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. [1] https://github.com/neondatabase/neon Regards, -- Masahiro Ikeda NTT DATA CORPORATION