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

54.26. pg_shmem_allocations #

The <structname>pg_shmem_allocations</structname> view shows allocations made from the server's main shared memory segment. This includes both memory allocated by <productname>PostgreSQL</productname> itself and memory allocated by extensions using the mechanisms detailed in <xref linkend="xfunc-shared-addin" />. pg_shmem_allocationsビューは、サーバの主共有メモリセグメントによるメモリの獲得状況を表示します。 これはPostgreSQL自身が獲得したメモリと、38.10.10で詳細を説明している機構を使って拡張が獲得したメモリの両方が含まれます。

Note that this view does not include memory allocated using the dynamic shared memory infrastructure. このビューは動的共有メモリ基盤を使って獲得したメモリは含まれないことに注意してください。

表54.26 pg_shmem_allocationsの列

<title><structname>pg_shmem_allocations</structname> Columns</title>

Column Type 列 型

Description 説明

name text

The name of the shared memory allocation. NULL for unused memory and <literal>&lt;anonymous&gt;</literal> for anonymous allocations. 共有メモリ獲得の名前です。 NULLなら未使用のメモリで、無名の獲得なら<anonymous>です。

off int8

The offset at which the allocation starts. NULL for anonymous allocations, since details related to them are not known. この獲得が開始する位置です。 無名の獲得は詳細が不明なので、NULLとなります。

size int8

Size of the allocation in bytes バイト単位の獲得サイズ

allocated_size int8

Size of the allocation in bytes including padding. For anonymous allocations, no information about padding is available, so the <literal>size</literal> and <literal>allocated_size</literal> columns will always be equal. Padding is not meaningful for free memory, so the columns will be equal in that case also. パディングを含むバイト単位の獲得サイズです。 無名の獲得では、パディングに関する情報はありません。ですからsizeallocated_size列は常に同じです。 パディングは未使用メモリでは意味がありません。ですからそのような列でも同じになります。


Anonymous allocations are allocations that have been made with <literal>ShmemAlloc()</literal> directly, rather than via <literal>ShmemInitStruct()</literal> or <literal>ShmemInitHash()</literal>. 無名の獲得は、ShmemInitStruct()あるいはShmemInitHash()ではなく、ShmemAlloc()で直接行われたものです。

By default, the <structname>pg_shmem_allocations</structname> view can be read only by superusers or roles with privileges of the <literal>pg_read_all_stats</literal> role. デフォルトではpg_shmem_allocationsはスーパーユーザか、pg_read_all_statsロールの権限を持つロールだけが読み取りできます。