Re: Add pg_get_injection_points() for information of injection points

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Kirill Reshke <reshkekirill(at)gmail(dot)com>
Subject: Re: Add pg_get_injection_points() for information of injection points
Date: 2025-04-14 13:29:37
Message-ID: CAJ7c6TOWq6WjAWZ9aJvwt93AqbZsnPt-HgZ3cQgUKMgr_iRb0g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> > Also, should we define pg_get_injection_points in the injection_points
> > extension maybe?
>
> As this is global for all libraries, that's not something I would add
> there.

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. Users will see a function in \df
that does nothing.

--
Best regards,
Aleksander Alekseev

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tender Wang 2025-04-14 13:34:16 Typos in the comment for the estimate_multivariate_ndistinct()
Previous Message Euler Taveira 2025-04-14 13:22:24 Re: New committer: Jacob Champion