select * from pg_stat_activity; code example Example: select * from pg_stat_activity select * from pg_stat_activity