如何在 PostgreSQL 上列出活動連接? - How to list active connections on PostgreSQL?

問題:

Is there a command in PostgreSQL to select active connections to a given database? PostgreSQL 中是否有一個命令可以選擇到給定數據庫的活動連接?

psql states that I can't drop one of my databases because there are active connections to it , so I would like to see what the connections are (and from which machines) psql聲明我不能刪除我的數據庫之一,因爲有活動連接到它,所以我想看看連接是什麼(以及來自哪些機器)


解決方案:

參考一: https://stackoom.com/question/1r7JX
參考二: How to list active connections on PostgreSQL?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章