Re: Patch proposal: New hooks in the connection path
bdrouvotAWS <bdrouvot@amazon.com>
From: "Drouvot, Bertrand" <bdrouvot@amazon.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL
Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-07-04T12:53:24Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add pg_stat_database counters for sessions and session time
- 960869da0803 14.0 cited
Attachments
- v2-0001-connection_hooks.patch (text/plain) patch v2-0001
Hi, On 7/2/22 1:00 AM, Nathan Bossart wrote: > Could we model this after fmgr_hook? The first argument in that hook > indicates where it is being called from. This doesn't alleviate the need > for several calls to the hook in the authentication logic, but extension > authors would only need to define one hook. I like the idea and indeed fmgr.h looks a good place to model it. Attached a new patch version doing so. Thanks -- Bertrand Drouvot Amazon Web Services: https://aws.amazon.com