52.67. pg\_backend\_memory\_contexts

|       52.67. `pg_backend_memory_contexts`       |                   |                           |                  |                            |
|:-----------------------------------------------:|-------------------|---------------------------|------------------|----------------------------|
|[Prev](view-pg-available-extension-versions.html)|[Up](catalogs.html)|Chapter 52. System Catalogs|[Home](index.html)| [Next](view-pg-config.html)|

---

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

---

|[Prev](view-pg-available-extension-versions.html)|[Up](catalogs.html)| [Next](view-pg-config.html)|
|:------------------------------------------------|:-----------------:|---------------------------:|
|    52.66. `pg_available_extension_versions`     |[Home](index.html) |     52.68. `pg_config`     |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>