pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: injection_points: Add support and tests for runtime arguments
Date: Fri, 09 May 2025 22:41:13 +0000
Message-ID: <E1uDWP3-000z2z-0F@gemulon.postgresql.org> (raw)

injection_points: Add support and tests for runtime arguments

This commit provides some test coverage for the runtime arguments of
injection points, for both INJECTION_POINT_CACHED() and
INJECTION_POINT(), as extended in 371f2db8b05e.

The SQL functions injection_points_cached() and injection_points_run()
are extended so as it is possible to pass an optional string value to
them.

Reviewed-by: Greg Burd <greg@burd.me>
Discussion: https://postgr.es/m/Z_y9TtnXubvYAApS@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/36e5fda6326045f4523568d4c9d682ee5d2f0867

Modified Files
--------------
.../injection_points/expected/injection_points.out | 45 ++++++++++++++++++++++
.../injection_points/injection_points--1.0.sql     | 10 +++--
.../modules/injection_points/injection_points.c    | 38 +++++++++++++++---
.../injection_points/sql/injection_points.sql      | 10 +++++
4 files changed, 93 insertions(+), 10 deletions(-)



Message-ID: <E1uDWP3-000z2z-0F@gemulon.postgresql.org>
Permalink:  ../E1uDWP3-000z2z-0F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uDWP3-000z2z-0F@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: injection_points: Add support and tests for runtime arguments
  In-Reply-To: <E1uDWP3-000z2z-0F@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox