Files
interactive/RCDB/DB/scripts/get_load.sh
T
2026-08-07 17:38:18 +09:00

6 lines
197 B
Bash
Executable File

#!/bin/sh
# 8.4
#psql -p 5432 -c "select * from pg_stat_activity where current_query != '<IDLE>';" template1
# 9.x
psql -p 6543 -c "select * from pg_stat_activity where state != 'idle';" template1