Module hooks
pgx
A trait and registration system for hooking Postgres internal operations such as its planner and executor
Register a PgHook instance to respond to the various hook points
PgHook