Re: Add pg_get_injection_points() for information of injection points

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add pg_get_injection_points() for information of injection points
Date: 2025-04-14 12:39:02
Message-ID: CALdSSPhiEj2aRwA=Louza7ppkSQjaU6HoNKA9yX9KRffrQYYVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 14 Apr 2025 at 17:32, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> As this is global for all libraries, that's not something I would add
> there.

Same applies for pg_stat_statements, but it is defined in extension.
Also, injection points are tests-only, so maybe no need to have this
function callable in production systems?
One more concern is about pre-defined oids: they are limited. Maybe we
should not consume predefined oid in case when this is avoidable.

--
Best regards,
Kirill Reshke

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2025-04-14 12:41:18 Using pg_bitutils.h in tidbitmap.c.
Previous Message Hayato Kuroda (Fujitsu) 2025-04-14 12:36:20 RE: doc patch: clarify the naming rule for injection_points