Remove enum WaitEventExtension
Michael Paquier <michael@paquier.xyz>
Remove enum WaitEventExtension This enum was used to determine the first ID to use when assigning a custom wait event for extensions, which is always 1. It was kept so as it would be possible to add new in-core wait events in the category "Extension". There is no such thing currently, so let's remove this enum until a case justifying it pops up. This makes the code simpler and easier to understand. This has as effect to switch back autoprewarm.c to use PG_WAIT_EXTENSION rather than WAIT_EVENT_EXTENSION, on par with v16 and older stable branches. Thinko in c9af05465307. Reported-by: Peter Eisentraut Discussion: https://postgr.es/m/195c6c45-abce-4331-be6a-e87724e1d060@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_prewarm/autoprewarm.c | modified | +2 −2 |
| src/backend/utils/activity/wait_event.c | modified | +3 −4 |
| src/include/utils/wait_event.h | modified | +0 −6 |
| src/tools/pgindent/typedefs.list | modified | +0 −1 |
Discussion
- Why does pgindent's README say to download typedefs.list from the buildfarm? 29 messages · 2024-04-22 → 2024-05-17