Skip to main content
Version: 2.x

pg_backend_memory_contexts

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

pg_backend_memory_contexts contains one row for each memory context.

columntypedescription
gp_segment_idint4The segment ID of the memory context.
nametextThe name of the memory context.
identtextIdentification information of the memory context. This field is truncated at 1024 bytes.
parenttextThe name of the parent of this memory context.
levelint4The distance from TopMemoryContext in context tree.
total_bytesint8The total number of bytes allocated for this memory context.
total_nblocksint8The total number of blocks allocated for this memory context.
free_bytesint8Free space in bytes.
free_chunksint8The total number of free chunks.
used_bytesint8Used space in bytes.