pg_resqueue_status

The pg_resqueue_status view allows administrators to see status and activity for a workload management resource queue. It shows how many queries are waiting to run and how many queries are currently active in the system from a particular resource queue.

Table 1. pg_resqueue_status

columntypereferencesdescription
rsqnamenamepgresqueue rsqnameThe name of the resource queue.
segmemtext The calculated virtual segment memory resource quota.
segcoretext The calculated virtual segment core resource quota.
segsizetext The number of virtual segments that can be allocated to the resource queue.
segsizemaxtext The maximum number of virtual segments that can be allocated to the resource queue.
inusememtext Aggregated in-use memory by running statements.
inusecoretext Aggregated in-use core by running statements.
rsqholderstext The number of resource holders for running statements. A resource holder is a running statement whose allocated resources from the resource manager has not been returned yet. In other words, the statement holds some resources allocated from the resource manager.
resqwaiterstext The number of resource requests that are queued and waiting for the resource.
pausedtext The dynamic pause status of the resource queue. There are three possible statuses:
  • T : Queue is paused for the allocation of resources to queued and incoming requests.
  • F : Queue is in a normal working status.
  • R : Queue is paused and may have encountered resource fragmentation.