I have a select query running very long. How will I get a status of that query, like how long will it be running? Whether it is accessing a data from the tables or not.
N
we can find the query log with respect to the database in postgres .
select * from pg_stat_activity where datname = 'yourdatabasename'
This will give active query log of database .