Hello, Michael!
Currently injection_point.c says [0]:
> /*
> * Allocate and register a new injection point. A new point should not
> * exist. For testing purposes this should be fine.
> */
What if we extend that limitation to allow registration of different
types for the same injection point? Like 'wait' and 'notice' (tol be
executed in order they registered).
It feels like a pretty simple solution and covers my needs.
Best regards,
Mikhail.
[0]: https://github.com/postgres/postgres/blob/7b2eb72b1b8ce4279e42848a3978e781ae239355/src/backend/utils/misc/injection_point.c#L298-L301