Pg_flight_recorder – server-side flight recorder for Postgres
github.com