How To See Currently Executing PostgreSQL Queries Posted on by Webmaster IT Support Forum › Forums › Databases › PostgreSQL › Troubleshooting › How To See Currently Executing PostgreSQL Queries Tagged: Activity, Performance This topic has 0 replies, 1 voice, and was last updated 7 years, 1 month ago by Webmaster. Viewing 0 reply threads Author Posts August 4, 2016 at 11:59 am #1913 WebmasterKeymaster To get a list of queries that are currently running in PostgreSQL, run the following SQL query against the database: SELECT * FROM pg_stat_activity WHERE application_name NOT LIKE ‘pgAdmin%’ AND NOT query = ‘DISCARD ALL’ AND NOT query = ‘unlisten *’; You can also use this to see how long the query has been running by pressing Shift + F7. Author Posts Viewing 0 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In