Re: Add pg_get_injection_points() for information of injection points - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add pg_get_injection_points() for information of injection points
Date
Msg-id Z_2TosE09s-dErbm@paquier.xyz
Whole thread Raw
In response to Re: Add pg_get_injection_points() for information of injection points  (Aleksander Alekseev <aleksander@timescale.com>)
List pgsql-hackers
On Mon, Apr 14, 2025 at 04:29:37PM +0300, Aleksander Alekseev wrote:
> If I didn't miss anything, all SQL functions dealing with injection
> points are gathered in injection_points extension so IMO
> pg_get_injection_points() belongs there. It would be awkward to have
> it in the core considering the fact that injection points presumably
> should be disabled in release builds.

There are two more in test_aio, and by design out-of-core extensions
can define their own.

> Users will see a function in \df that does nothing.

Yeah, this one's true if --enable-injection-points is not used.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Mahendra Singh Thalor
Date:
Subject: Re: pgsql: Non text modes for pg_dumpall, correspondingly change pg_restore
Next
From: Ilia Evdokimov
Date:
Subject: Re: Add estimated hit ratio to Memoize in EXPLAIN to explain cost adjustment