查询运行中的sql语句

select * from  pg_stat_activity where datname='dgdb' 

原文地址:https://www.cnblogs.com/lidapengwww/p/14542657.html