How to see active connections and "current activity" in PostgreSQL 8.4
Thanks for contributing an answer to Server Fault! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
https://serverfault.com/questions/128284/how-to-see-active-connections-and-current-activity-in-postgresql-8-4