Add a new function and a document page to get/show all the server hooks

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Add a new function and a document page to get/show all the server hooks
Date: 2022-05-04 10:54:57
Message-ID: CALj2ACWB9UGDuqQ9MhMFhYRVR5RBCyzj+aLf9=OBdiQNbi6UnQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

As we have many hooks in postgres that extends the postgres
functionality, I'm wondering if it's a good idea to add a new
function, say, pg_get_all_server_hooks, returning hook name, hook
declaration and its current value (if there's any external module
loaded implementing the hook). This basically helps to know at any
given point of time what all the hooks are installed and the modules
implementing them. Imagine using this new function on a production
server with many supported extensions installed which might implement
some of the hooks.

Also, a dedicated page in the documentation listing out all the hooks,
their declarations and a short description. This will help
developers/users to know the available hooks.

One problem is that the new function and doc page create an extra
burden of keeping them up to date with the hooks modifications and new
hook additions, but I think that can be taken care of in the review
phases.

Thoughts?

Regards,
Bharath Rupireddy.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2022-05-04 11:03:45 Re: Add pg_strtoupper and pg_strtolower functions
Previous Message Amit Kapila 2022-05-04 10:27:34 Re: Hash index build performance tweak from sorting