pg_backend_memory_contexts
The view pg_backend_memory_contexts displays all the memory contexts of the server process attached to the current session. pg_backend_memory_contexts contains one row for each memory context.
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- kind
- view
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- name, ident, type, level, path, total_bytes, total_nblocks, free_bytes, free_chunks, used_bytes
- runtime verified
- false
- source
- english-manual
Definition PG 18
The view pg_backend_memory_contexts displays all the memory contexts of the server process attached to the current session. pg_backend_memory_contexts contains one row for each memory context.
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| name | text | Nullable | Name of the memory context |
| ident | text | Nullable | Identification information of the memory context. This field is truncated at 1024 bytes |
| type | text | Nullable | Type of the memory context |
| level | int4 | Nullable | The 1-based level of the context in the memory context hierarchy. The level of a context also shows the position of that context in the path column. |
| path | int4[] | Nullable | Array of transient numerical identifiers to describe the memory context hierarchy. The first element is for TopMemoryContext, subsequent elements contain intermediate parents and the final element contains the identifier for the current context. |
| total_bytes | int8 | Nullable | Total bytes allocated for this memory context |
| total_nblocks | int8 | Nullable | Total number of blocks allocated for this memory context |
| free_bytes | int8 | Nullable | Free space in bytes |
| free_chunks | int8 | Nullable | Total number of free chunks |
| used_bytes | int8 | Nullable | Used space in bytes |
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:1af7732c53c5cd8b45e5f04b7db6b560adba66bf501fbb61701d40898fa117f9
Text language: en · catalog-bilingual-repair:1af7732c53c5cd8b45e5f04b7db6b560adba66bf501fbb61701d40898fa117f9