バージョンごとのドキュメント一覧

54.4. pg_backend_memory_contexts #

The view <structname>pg_backend_memory_contexts</structname> displays all the memory contexts of the server process attached to the current session. pg_backend_memory_contextsビューは、現在のセッションにアタッチされているサーバプロセスのすべてのメモリコンテキストを表示します。

<structname>pg_backend_memory_contexts</structname> contains one row for each memory context. pg_backend_memory_contextsの各1行が各々のメモリコンテキストを格納します。

表54.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 メモリコンテキストの識別情報。このフィールドは1024バイトで切り捨てられる

parent text

Name of the parent of this memory context このメモリコンテキストの親の名前

level int4

Distance from TopMemoryContext in context tree コンテキストツリーにおけるTopMemoryContextからの距離

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 <structname>pg_backend_memory_contexts</structname> view can be read only by superusers or roles with the privileges of the <literal>pg_read_all_stats</literal> role. デフォルトではpg_backend_memory_contextsビューはスーパーユーザか、pg_read_all_statsロールの権限を持つユーザのみが読み取り専用でアクセスできます。