📜  postgres 活动连接 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:35.286000             🧑  作者: Mango

代码示例1
SELECT * FROM pg_stat_activity;

OR

SELECT datid, datname, pid, usename, state, query FROM pg_stat_activity;