Re: Support to define custom wait events for extensions
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
To: Michael Paquier <michael@paquier.xyz>,
Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-06-15T13:21:50Z
Lists: pgsql-hackers
Hi, On 6/15/23 10:00 AM, Michael Paquier wrote: > On Thu, Jun 15, 2023 at 03:06:01PM +0900, Masahiro Ikeda wrote: >> Currently, only one PG_WAIT_EXTENSION event can be used as a >> wait event for extensions. Therefore, in environments with multiple >> extensions are installed, it could take time to identify which >> extension is the bottleneck. > > Thanks for taking the time to implement a patch to do that. +1 thanks for it! > >> I want to know your feedbacks. Please feel free to comment. > > I think that's been cruelly missed. Yeah, that would clearly help to diagnose which extension(s) is/are causing the waits (if any). I did not look at the code yet (will do) but just wanted to chime in to support the idea. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
-
Change custom wait events to use dynamic shared hash tables
- af720b4c50a1 17.0 landed
-
Support custom wait events for wait event type "Extension"
- c9af05465307 17.0 landed
-
Add WAIT_EVENT_{CLASS,ID}_MASK in wait_event.c
- 7395a90db87b 17.0 landed
-
worker_spi: Switch to TAP tests
- 320c311fda91 17.0 cited
-
Simplify some conditions related to [LW]Lock in generate-wait_event_types.pl
- c17164aec88c 17.0 landed