We need to implement table `pg_stat_activity` as a view against `stats_pgsql_processlist` , changing column name when necessary For reference: https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW