injection_points: Add injection_points_list() master github/master
authorMichael Paquier <michael@paquier.xyz>
Thu, 10 Jul 2025 01:01:10 +0000 (10:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 10 Jul 2025 01:01:20 +0000 (10:01 +0900)
commit4eca711bc991954613261b7a314b1e8f5963815c
treef33b7f5d4a9bd5546459f21ef33348d2b5b008d1
parent48a23f6eae710d2c5c29f38e66d76e7919117e4d
injection_points: Add injection_points_list()

This function can be used to retrieve the information about all the
injection points attached to a cluster, providing coverage for
InjectionPointList() introduced in 7b2eb72b1b8c.

The original proposal turned around a system function, but that would
not be backpatchable to stable branches.  It was also a bit weird to
have a system function that fails depending on if the build allows
injection points or not.

Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Reviewed-by: Rahila Syed <rahilasyed90@gmail.com>
Discussion: https://postgr.es/m/Z_xYkA21KyLEHvWR@paquier.xyz
src/test/modules/injection_points/expected/injection_points.out
src/test/modules/injection_points/injection_points--1.0.sql
src/test/modules/injection_points/injection_points.c
src/test/modules/injection_points/sql/injection_points.sql