Skip to content
← Catalog atlas / pg_backend_memory_contexts

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.

First seen PG 14Last seen PG 19Columns 10

Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗

Columns PostgreSQL 18

pg_backend_memory_contexts
COLUMNTYPEDESCRIPTION
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.

Column evolution matrix

Hover a cell for the column type
PresentAdded / type or attribute changeRemoved
COLUMN9.09.19.29.39.49.59.610111213141516171819
name
ident
parent
level
total_bytes
total_nblocks
free_bytes
free_chunks
used_bytes
type
path

9.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 majors

PostgreSQL 18 ← 17

+ type+ path− parent1 column description updates

PostgreSQL 14 ← 13Catalog added

+ name+ ident+ parent+ level+ total_bytes+ total_nblocks+ free_bytes+ free_chunks+ used_bytes

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.