Skip to content

Backport injection_points: injection_points_attach overload with library, function, and private data (v18)#937

Merged
a-masterov merged 1 commit intoREL_18_STABLE_neonfrom
amasterov/backport_injpoints-18
Mar 30, 2026
Merged

Backport injection_points: injection_points_attach overload with library, function, and private data (v18)#937
a-masterov merged 1 commit intoREL_18_STABLE_neonfrom
amasterov/backport_injpoints-18

Conversation

@a-masterov
Copy link
Copy Markdown

This change backports postgres/postgres@16a2f70, which adds a second overload of injection_points_attach that takes an explicit library name, function name, and optional bytea private data, so tests can attach callbacks without hard-coding the injection_points module wrapper.
Because that commit’s regression test lists attached points, it also adds InjectionPointList() in the core and exposes it via injection_points_list() in the injection_points test extension, matching upstream.
The injection_points SQL regression test and expected output are extended accordingly.
Note: injection_points--1.0.sql is updated; existing databases that already have the extension may need a separate upgrade script if you rely on ALTER EXTENSION ... UPDATE rather than recreating the extension.

@a-masterov a-masterov changed the title backport-injpoints-18 Backport injection_points: injection_points_attach overload with library, function, and private data (v18) Mar 25, 2026
@a-masterov a-masterov merged commit 94b8da0 into REL_18_STABLE_neon Mar 30, 2026
@a-masterov a-masterov deleted the amasterov/backport_injpoints-18 branch March 30, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants