↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

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

ColumnTypeNullabilityDescription
nametextNullableName of the memory context
identtextNullableIdentification information of the memory context. This field is truncated at 1024 bytes
typetextNullableType of the memory context
levelint4NullableThe 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.
pathint4[]NullableArray 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_bytesint8NullableTotal bytes allocated for this memory context
total_nblocksint8NullableTotal number of blocks allocated for this memory context
free_bytesint8NullableFree space in bytes
free_chunksint8NullableTotal number of free chunks
used_bytesint8NullableUsed 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