App to monitor PostgreSQL queries in real time?

前端 未结 4 2024
小蘑菇
小蘑菇 2021-02-03 23:31

I\'d like to monitor the queries getting sent to my database from an application. To that end, I\'ve found pg_stat_activity, but more often then not, the rows which

4条回答
  •  天涯浪人
    2021-02-04 00:17

    I haven't tried it myself unfortunately, but I think that pgFouine can show you some statistics.

    Although, it seems it does not show you queries in real time, but rather generates a report of queries afterwards, perhaps it still satisfies your demand?

    You can take a look at http://pgfouine.projects.postgresql.org/

提交回复
热议问题