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

2022-05-04 Thread Tom Lane
Peter Eisentraut writes: > On 04.05.22 12:54, Bharath Rupireddy wrote: >> 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. >

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

2022-05-04 Thread Peter Eisentraut
On 04.05.22 12:54, Bharath Rupireddy wrote: 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? I think this has been propo

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

2022-05-04 Thread Bharath Rupireddy
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 basi