postgres current active connection code example
Example: postgres active connections
SELECT * FROM pg_stat_activity;
OR
SELECT datid, datname, pid, usename, state, query FROM pg_stat_activity;
SELECT * FROM pg_stat_activity;
OR
SELECT datid, datname, pid, usename, state, query FROM pg_stat_activity;