Re: isolation tester limitation in case of multiple injection points in a single command

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Mihail Nikalayeu <mihailnikalayeu@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-09T22:34:21Z
Lists: pgsql-hackers
On Sun, Nov 09, 2025 at 01:53:00PM +0100, Mihail Nikalayeu wrote:
> 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.

It is already possible to achieve that, isn't it?  One can define
side-by-side twice INJECTION_POINT(), then assign a different callback
to each with a strict control of the execution order.
--
Michael

Commits

  1. Improve test case stability

  2. injection_points: Add injection_points_list()

  3. Add InjectionPointList() to retrieve list of injection points