PostgreSQL 18 ← 17
SYSTEM VIEW · System view
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.
Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗
Columns PostgreSQL 18
pg_backend_memory_contexts| COLUMN | TYPE | DESCRIPTION |
|---|---|---|
name |
text |
Name of the memory context |
ident |
text |
Identification information of the memory context. This field is truncated at 1024 bytes |
type |
text |
Type of the memory context |
level |
integerDocumented as:int4 |
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 |
integer[]Documented as:int4[] |
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 |
bigintDocumented as:int8 |
Total bytes allocated for this memory context |
total_nblocks |
bigintDocumented as:int8 |
Total number of blocks allocated for this memory context |
free_bytes |
bigintDocumented as:int8 |
Free space in bytes |
free_chunks |
bigintDocumented as:int8 |
Total number of free chunks |
used_bytes |
bigintDocumented as:int8 |
Used space in bytes |
Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.
Common system columns 0
System attributes PostgreSQL provides, normally not expanded by SELECT *. Kept separately so they are not mixed in with ordinary columns.
| Columns | Type | attnum |
|---|
Column evolution matrix
Hover a cell for the column type9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.
Evolution timeline
Changes between adjacent majorsPostgreSQL 14 ← 13Catalog added
Compare any two versions
Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.