Re: Add tests for object size limits of injection points

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-10T14:14:02Z
Lists: pgsql-hackers
> On 10 Nov 2025, at 02:11, Michael Paquier <michael@paquier.xyz> wrote:

> 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.

While they do increase code coverage, which is a good thing, it seems somewhat
unlikely that they will catch bugs given the nature of of the code being
tested.  That being said they come at a low cost so no objections to add.

--
Daniel Gustafsson




Commits

  1. injection_points: Add tests for name limits

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