pg_resqueue

The pg_resqueue system catalog table contains information about HAWQ resource queues, which are used for managing resources. This table is populated only on the master. This table is defined in the pg_global tablespace, meaning it is globally shared across all databases in the system.

Table 1. pg_catalog.pg_resqueue

columntypereferencesdescription
rsqnamename The name of the resource queue.
parentoidoid OID of the parent queue of the resource queue.
activestatsinteger The maximum number of parallel active statements allowed for the resource queue.
memorylimittext The maximum amount of memory that can be consumed by the resource queue (expressed as a percentage of the cluster’s memory.) Because of how memory is determined, the memory limit is not an upper limit on the memory actually used by a resource queue.
corelimittext The maximum amount of cores that can be consumed by the resource queue (expressed as a percentage of the cluster’s cores.)
resovercommitreal The ratio of resource consumption overcommit for the resource queue.
allocpolicytext The resource allocation policy name for the resource queue.
vsegresourcequotatext The virtual segment resource quota for the resource queue.
nvsegupperlimitinteger The upper limit of number of virtual segments allowed for one statement execution.
nvseglowerlimitinteger The lower limit of number of virtual segments allowed for one statement execution.
nvsegupperlimitpersegreal The upper limit of number of virtual segments allowed for one statement execution. The limit is averaged by the number of segments in the cluster.
nvseglowerlimitpersegreal The lower limit of number of virtual segments aloowed for one statement execution. The limit is averaged by the number of segments in the cluster.
creationtimetimestamp with time zone Time when the resource queue was created.
updatetimetimestamp with time zone Time when the resource queue was last changed.
statustext Current status of the resource queue.Possible values are branch, which indicates a branch resource queue (has children), and NULL, which indicates a leaf-level queue (no children).