53.4. pg_backend_memory_contexts #

В представлении pg_backend_memory_contexts показываются все контексты памяти серверного процесса, обслуживающего текущий сеанс.

Представление pg_backend_memory_contexts содержит одну строку для каждого контекста памяти.

Таблица 53.4. Столбцы pg_backend_memory_contexts

Тип столбца

Описание

name text

Имя контекста памяти

ident text

Информация для идентификации контекста памяти. Размер поля ограничен 1024 байтами

parent text

Имя родителя данного контекста памяти

level int4

Расстояние от верхнего контекста памяти (TopMemoryContext) в дереве контекстов

total_bytes int8

Общий объём памяти, выделенный для данного контекста, в байтах

total_nblocks int8

Общее количество блоков памяти, выделенных для данного контекста

free_bytes int8

Объём свободного пространства в байтах

free_chunks int8

Общее количество свободных участков

used_bytes int8

Объём использованного пространства в байтах


По умолчанию представление pg_backend_memory_contexts могут читать только суперпользователи или пользователи c правами роли pg_read_all_stats.

53.4. 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 53.4. pg_backend_memory_contexts Columns

Column Type

Description

name text

Name of the memory context

ident text

Identification information of the memory context. This field is truncated at 1024 bytes

parent text

Name of the parent of this memory context

level int4

Distance from TopMemoryContext in context tree

total_bytes int8

Total bytes allocated for this memory context

total_nblocks int8

Total number of blocks allocated for this memory context

free_bytes int8

Free space in bytes

free_chunks int8

Total number of free chunks

used_bytes int8

Used space in bytes


By default, the pg_backend_memory_contexts view can be read only by superusers or roles with the privileges of the pg_read_all_stats role.

FAQ