Add tests for object size limits of injection points

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-10T01:11:42Z
Lists: pgsql-hackers

Attachments

Hi all,

While looking at a recent patch for injection points that has resulted
in 16a2f706951e, I have been reminded that the point name, library
name and function name have hardcoded limits, and it is now possible
to have them tested by SQL.

Attached is a patch to do so.  Thoughts?
--
Michael

Commits

  1. injection_points: Add tests for name limits

  2. Report better object limits in error messages for injection points