Skip to main content
Version: 2.x

pg_resourcetype

The pg_resourcetype system catalog table contains information about the extended attributes that can be assigned to Apache Cloudberry resource queues. Each row details an attribute and inherent qualities such as its default setting, whether it is required, and the value to deactivate it (when allowed).

This table is populated only on the coordinator. This table is defined in the pg_global tablespace, meaning it is globally shared across all databases in the system.

columntypereferencesdescription
oidoidThe object ID
resnamename The name of the resource type
restypidsmallint The resource type ID
resrequiredboolean Whether the resource type is required for a valid resource queue
reshasdefaultboolean Whether the resource type has a default value. When true, the default value is specified in reshasdefaultsetting.
rescandisableboolean Whether the type can be removed or deactivated. When true, the default value is specified in resdisabledsetting.
resdefaultsettingtext Default setting for the resource type, when applicable
resdisabledsettingtext The value that deactivates this resource type (when allowed)