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
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/