This article is half-done without your Comment! *** Please share your thoughts via Comment ***
In this post, I am sharing a script to check the list of running queries or statements which are waiting in the Resource Queues of Greenplum.
The Workload management of Greenplum means – Set priorities of database user’s queries using Resource Queues. If you create RQ with the limit of 10 concurrent queries and user is trying to execute more than 10 queries at a time then few RQ keeps few queries in the waiting mode.
Using below query, you can get the list of running queries which are in the waiting mode.
FROM pg_roles, gp_toolkit.gp_resqueue_status