GS_LSC_MEMORY_DETAIL
GS_LSC_MEMORY_DETAIL视图,统计当前节点各线程SysCache内存占用情况。该视图仅9.1.1.100及以上集群版本支持。
名称 |
类型 |
描述 |
---|---|---|
sessid |
text |
线程启动时间+线程标识。 |
thread_name |
text |
线程名称。 |
context_name |
text |
MemoryContext名称。 |
totalsize |
bigint |
从操作系统分配的总内存。 |
usedsize |
bigint |
已使用的内存。 |
应用示例
查询当前视图,统计各线程SysCache内存占用情况。
1 2 3 4 5 6 7 |
SELECT * FROM GS_LSC_MEMORY_DETAIL; sessid | thread_name | context_name | totalsize | usedsize -----------------------------------------+------------------+------------------------+-----------+---------- 1744684969.139761390696120.coordinator1 | postgres | PartCacheMemoryContext | 24576 | 128 1744684969.139761390696120.coordinator1 | postgres | RelCacheMemoryContext | 516096 | 384 1744684969.139761390696120.coordinator1 | postgres | SysCacheMemoryContext | 516096 | 6000 (3 rows) |