## 52.67. `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.

**Table 52.68. `pg_backend_memory_contexts` Columns**

|                                        Column Type<br/><br/> Description                                       |
|----------------------------------------------------------------------------------------------------------------|
|                               `name` `text`<br/><br/> Name of the memory context                               |
|`ident` `text`<br/><br/> Identification information of the memory context. This field is truncated at 1024 bytes|
|                      `parent` `text`<br/><br/> Name of the parent of this memory context                       |
|                    `level` `int4`<br/><br/> Distance from TopMemoryContext in context tree                     |
|                  `total_bytes` `int8`<br/><br/> Total bytes allocated for this memory context                  |
|           `total_nblocks` `int8`<br/><br/> Total number of blocks allocated for this memory context            |
|                               `free_bytes` `int8`<br/><br/> Free space in bytes                                |
|                           `free_chunks` `int8`<br/><br/> Total number of free chunks                           |
|                               `used_bytes` `int8`<br/><br/> Used space in bytes                                |

 By default, the `pg_backend_memory_contexts` view can be read only by superusers.

