I am trying to deal with some performance issues with slow query applications. We are using Postgresql 9.2. I can easily see that the requests are being executed:
postgres=# select now() - query_start, query from pg_stat_activity where state <> 'idle'; 00:00:01.535388 | select bla from product where ...
I need to know which schema contains the tables listed in the query. How can I see which βproductβ table is being requested, given that there are hundreds of them in different schemas in the same database.
source share