pgsql: injection_points: Move some structs to new header injection_poin

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: injection_points: Move some structs to new header injection_poin
Date: 2026-05-18 02:12:07
Message-ID: E1wOnSh-0005CB-0R@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

injection_points: Move some structs to new header injection_points.h

This commit moves the definitions of InjectionPointConditionType and
InjectionPointCondition into a new header local to the test module
injection_points.h, so as these can be shared across more files in the
module. A patch for a bug fix is under discussion, whose proposed test
will benefit from this refactoring.

Backpatch down to where the module exists, as this should be useful for
future bug fixes, even cases unrelated to the thread where this change
has been discussed.

Author: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Author: Vlad Lesin <vladlesin(at)gmail(dot)com>
Discussion: https://postgr.es/m/d2983796-2603-41b7-a66e-fc8489ddb954@gmail.com
Backpatch-through: 17

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/20a4b06a1ea1396ab1ced0db96406b50fb3b603a

Modified Files
--------------
.../modules/injection_points/injection_points.c | 25 +---------------
.../modules/injection_points/injection_points.h | 33 ++++++++++++++++++++++
2 files changed, 34 insertions(+), 24 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-05-18 03:44:20 pgsql: Fix IGNORE NULLS nullness cache for volatile window arguments.
Previous Message Noah Misch 2026-05-17 01:03:20 pgsql: Use ereport(ERROR), not Assert(), for publisher tuples missing c