select open change scope Open full search

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

SYSTEM CATALOGS / SYSTEM VIEWS

pg_backend_memory_contexts

Read PG 18 manual ↗

The view pg_backend_memory_contexts displays all the memory contexts of the server process attached to the current session.

Kind
System views
Columns in this snapshot
10
Definition source
English manual

Columns 10

ColumnTypeDescription / reference
nametextName of the memory context
identtextIdentification information of the memory context. This field is truncated at 1024 bytes
typetextType of the memory context
levelint4The 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[]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_bytesint8Total bytes allocated for this memory context
total_nblocksint8Total number of blocks allocated for this memory context
free_bytesint8Free space in bytes
free_chunksint8Total number of free chunks
used_bytesint8Used space in bytes
Column history across versions
Version history 2
  1. PG 17 → 18changed
  2. PG 13 → 14added

Definition snapshot: english-manuals:4d2a7c4ecfc7543ba2ac5fca931… · English manual source