{"Entry":{"collection":"catalog","key":"pg_shmem_allocations_numa","name":"pg_shmem_allocations_numa","aliases":[],"metadata":{"changed_in":[],"changes":[{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"17","order":false,"removed":[],"status":"added","to":"18","types":[]}],"column_count":3,"content_hash":"f354f4d7176b4045c66714fee2f29de088c7350af301fdf1058f73dcbb1a01f5","first_version":"18","imported_at":"2026-09-30T00:40:55.833313+08:00","kind":"view","last_version":"20","name":"pg_shmem_allocations_numa","position":79,"present_in":["18","19","20"],"relation_oid":null,"relkind":"v","shared":false,"source_rev":"english-manuals:c37afe002d212a413509b57297a05e86fa82fa35d2b934bf9bb2c222171f05f9","summary":"The pg_shmem_allocations_numa shows how shared memory allocations in the server's main shared memory segment are distributed across NUMA nodes.","summary_zh":""}},"Definition":{"Collection":"catalog","Key":"pg_shmem_allocations_numa","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_shmem_allocations_numa","SourceRevision":"english-manuals:c37afe002d212a413509b57297a05e86fa82fa35d2b934bf9bb2c222171f05f9","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"The name of the shared memory allocation.","description_zh":"","documented":true,"documented_name":"name","hidden":false,"name":"name","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25},{"array_dimensions":0,"attnum":2,"description":"ID of NUMA node","description_zh":"","documented":true,"documented_name":"numa_node","hidden":false,"name":"numa_node","not_null":false,"references":"","type":"int4","type_modifier":-1,"type_oid":23},{"array_dimensions":0,"attnum":3,"description":"Size of the allocation on this particular NUMA memory node in bytes","description_zh":"","documented":true,"documented_name":"size","hidden":false,"name":"size","not_null":false,"references":"","type":"int8","type_modifier":-1,"type_oid":20}],"description":"The pg_shmem_allocations_numa shows how shared memory allocations in the server's main shared memory segment are distributed across NUMA nodes. This includes both memory allocated by PostgreSQL itself and memory allocated by extensions using the mechanisms detailed in Section 36.10.11. This view will output multiple rows for each of the shared memory segments provided that they are spread across multiple NUMA nodes. This view should not be queried by monitoring systems as it is very slow and may end up allocating shared memory in case it was not used earlier. Current limitation for this view is that won't show anonymous shared memory allocations.\n\nNote that this view does not include memory allocated using the dynamic shared memory infrastructure.","description_zh":"","doc":{"anchor":"id-1.10.5.32.6","file":"view-pg-shmem-allocations-numa.html","lang":"en","sha256":"f720303dd1727155e4cc9774d4d485b509b9c2d3addcbb3e3cd28674723b68ba","slug":"18"},"kind":"view","lang":"en","measured_attributes":true,"metadata_release":"18.6","runtime_columns":["name","numa_node","size"],"runtime_verified":false,"source":"english-manual"},"ManualEvidence":{"doc":{"anchor":"id-1.10.5.32.6","file":"view-pg-shmem-allocations-numa.html","lang":"en","sha256":"f720303dd1727155e4cc9774d4d485b509b9c2d3addcbb3e3cd28674723b68ba","slug":"18"}},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["name","numa_node","size"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_shmem_allocations_numa","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_shmem_allocations_numa","Summary":"pg_shmem_allocations_numa 显示服务器主共享内存段中的共享内存分配如何分布在各个 NUMA 节点上。这既包括 PostgreSQL 自身分配的内存，也包括扩展使用第 36.10.11 节所述机制分配的内存。只要共享内存段分布在多个 NUMA 节点上，该视图就会为每个共享内存段输出多行。监控系统不应查询此视图，因为它非常慢，而且如果共享内存此前尚未使用，还可能最终触发共享内存分配。目前该视图的限制是不会显示匿名共享内存分配。\n\n请注意，此视图不包括使用动态共享内存基础设施分配的内存。","BodyHTML":"\u003cp\u003epg_shmem_allocations_numa 显示服务器主共享内存段中的共享内存分配如何分布在各个 NUMA 节点上。这既包括 PostgreSQL 自身分配的内存，也包括扩展使用第 36.10.11 节所述机制分配的内存。只要共享内存段分布在多个 NUMA 节点上，该视图就会为每个共享内存段输出多行。监控系统不应查询此视图，因为它非常慢，而且如果共享内存此前尚未使用，还可能最终触发共享内存分配。目前该视图的限制是不会显示匿名共享内存分配。\n\n请注意，此视图不包括使用动态共享内存基础设施分配的内存。\u003c/p\u003e","SourceRevision":"2026-09-27@419045e","ContentHash":"8fedef98c47b4643f5f45df3722af28eb6dfc3e1b2821c6222f18aa9f651f426","Payload":{"columns":[{"description_zh":"共享内存分配的名称","name":"name","type":"text","zh_from":"doc"},{"description_zh":"NUMA 节点 ID","name":"numa_node","type":"integer","zh_from":"doc"},{"description_zh":"该分配在此特定 NUMA 内存节点上的大小，按字节计","name":"size","type":"bigint","zh_from":"doc"}],"description_zh":"pg_shmem_allocations_numa 显示服务器主共享内存段中的共享内存分配如何分布在各个 NUMA 节点上。这既包括 PostgreSQL 自身分配的内存，也包括扩展使用第 36.10.11 节所述机制分配的内存。只要共享内存段分布在多个 NUMA 节点上，该视图就会为每个共享内存段输出多行。监控系统不应查询此视图，因为它非常慢，而且如果共享内存此前尚未使用，还可能最终触发共享内存分配。目前该视图的限制是不会显示匿名共享内存分配。\n\n请注意，此视图不包括使用动态共享内存基础设施分配的内存。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
