Introduction
Active sessions in Greenplum Command Center (GPCC) or pg_stat_activity may occasionally fail to display the assigned resource group, showing rsgname as unknown. This behavior occurs even when the session is executing queries and consuming system resources.
Symptoms
unknown" or blank for the workload/resource group.SELECT rsgname FROM pg_stat_activity returns unknown for active sessions.execute <handle> patterns for these specific sessions.The reasons for rsgname showing as unknown fall into two main categories: a known version defect (Bug) and expected system behaviors (By Design).
A defect exists where the database engine only assigns a resource group during the "Prepare" phase of a server-side prepared statement. Subsequent "Execute" commands reuse the cached plan but skip the resource group assignment step, causing the session to run without resource group limitations (bypassing concurrency and memory limits).
Impact:
These queries run completely outside of their designated resource group (e.g., etl_group) and do not consume a concurrency slot. The consequences differ significantly depending on the Greenplum version:
statement_mem parameter as its limit. If the query requires more memory than statement_mem, it will spill to disk instead of causing an OOM.Apart from the bug mentioned above, the following 8 scenarios will also legitimately show as unknown by architectural design:
idle state have had their concurrency slots reclaimed, and rsgname resets to unknown.gp_resgroup_enable_early_unassign is set to on, queries can turn into rsgname='unknown' at some stage to release the slot.gp_resource_group_bypass = on.gp_resource_group_bypass to on before actually executing the query.MIN_COST threshold of the resource group. The system bypasses it to save queuing time.gp_resource_group_bypass_catalog_query is set to on.gp_resource_group_bypass_direct_dispatch is set to on.Upgrade the Greenplum cluster to version 7.6.0 or 6.30.1 and higher. See https://knowledge.broadcom.com/external/article/142814/download-broadcom-products-and-software.html to download this release.
autocommit=off)You can verify this by checking the database CSV logs (pg_log/log). If the logged queries start with execute <statement_name>: (e.g., execute ST7F9968028900: select ...), it can be confirmed that the client is utilizing server-side prepared statements.