PostgreSQL: pg_stat_activity
pg_stat_activity, на сайте с December 10, 2022 04:27
The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.