WarehousePG Enterprise Manager (WEM) installs the wem schema in your WarehousePG (WHPG) cluster, which includes a suit of specialized views. Use these views to perform deep-dive diagnostics into distributed operations, storage efficiency, and resource group utilization directly from your SQL client.

Monitoring views

Session and activity views

Monitor real-time connectivity and identify execution bottlenecks.

View nameDescription
wem.v_activityExtends pg_stat_activity with WHPG-specific columns like resource_group and sess_id to identify distributed query bottlenecks.
wem.v_session_summaryProvides an overview of connections per user and application to detect service accounts exhausting the connection pool.
wem.v_replicationMonitors synchronization status and lag (in bytes and time) between primary and mirror segments.
wem.v_wait_eventsAggregates current wait types to determine if the cluster is bound by I/O, network, or CPU.

Storage and distribution views

Audit table health, data skew, and compression efficiency.

View nameDescription
wem.v_check_data_skewAnalyzes row distribution across segments to identify segments that are slowing down parallel processing.
wem.v_table_sizes_summaryDisplays table sizes, storage formats (Heap/AO), and compression levels across the cluster.
wem.v_table_sizes_aggregatedProvides a high-level view of object sizes and estimated row counts for large-scale storage audits.
wem.v_bloat_tablesDetects fragmented space (bloat) in tables caused by high-volume UPDATE or DELETE operations.
wem.v_bloat_tables_detailedProvides page-level details on expected vs. actual table size to prioritize VACUUM FULL operations.
wem.v_partitionsLists child partition metadata, including ranks, boundaries, and associated tablespaces.
wem.v_list_objects_sizeA low-level view of individual object sizes (tables/indexes) per segment.

Resource and access views

Use these views to audit security policies and resource group limits.

View nameDescription
wem.v_resource_configDisplays the configured CPU, memory, and concurrency limits for every resource group.
wem.v_resource_statusTracks real-time resource group metrics, including running vs. queued queries and total execution counts.
wem.v_roles_with_resourcesMaps database roles to their assigned resource groups and identifies superuser or login privileges.
wem.v_hba_rulesDisplays the parsed rules from pg_hba.conf and highlights any syntax or configuration errors.

Logging and backup views

Investigate historical events and data protection status.

View nameDescription
wem.read_gpdb_log_d_[X]Allows SQL-based searching of coordinator logs for the current day (d) or previous days (d_1 through d_10).
wem.backup_history_metadataProvides a historical record of gpbackup operations, including status, compression types, and table filters.

Could this page be better? Report a problem or suggest an addition!