pg_aios #
The <structname>pg_aios</structname> view lists all <xref
linkend="glossary-aio"/> handles that are currently in-use. An I/O handle
is used to reference an I/O operation that is being prepared, executed or
is in the process of completing. <structname>pg_aios</structname> contains
one row for each I/O handle.
pg_aiosビューは、現在使用中のすべてのAsynchronous I/O【非同期I/O】ハンドルを列挙します。
I/Oハンドルは、準備中、実行中、または完了処理中のI/O操作を参照するために使用されます。
pg_aiosには、各I/Oハンドルごとに1つの行が含まれます。
This view is mainly useful for developers of <productname>PostgreSQL</productname>, but may also be useful when tuning <productname>PostgreSQL</productname>. このビューは、主にPostgreSQLの開発者にとって有用ですが、PostgreSQLをチューニングするときにも役立つ場合があります。
表53.2 pg_aiosの列
Column Type 列 型 Description 説明 |
|---|
Process ID of the server process that is issuing this I/O. このI/Oを発行しているサーバプロセスのプロセスID。 |
Identifier of the I/O handle. Handles are reused once the I/O
completed (or if the handle is released before I/O is started). On reuse
<link linkend="view-pg-aios-io-generation">
<structname>pg_aios</structname>.<structfield>io_generation</structfield>
</link>
is incremented.
I/Oハンドルの識別子。
ハンドルはI/Oが完了すると(またはI/Oが開始される前にハンドルが解放された場合に)再利用されます。
再利用されると、 |
Generation of the I/O handle. I/Oハンドルの世代。 |
State of the I/O handle: I/Oハンドルの状態は以下です。
|
Operation performed using the I/O handle: I/Oハンドルを使用して行われる操作は以下です。
|
Offset of the I/O operation. I/O操作のオフセット。 |
Length of the I/O operation. I/O操作の長さ。 |
What kind of object is the I/O targeting: I/O対象のオブジェクト種別は以下です。
|
Length of the data associated with the I/O operation. For I/O to/from <xref linkend="guc-shared-buffers"/> and <xref linkend="guc-temp-buffers"/>, this indicates the number of buffers the I/O is operating on. I/O操作に関連するデータの長さ。 shared_buffersとtemp_buffersに対するI/Oの場合、I/Oが行われているバッファの数を示します。 |
Low-level result of the I/O operation, or NULL if the operation has not yet completed. I/O操作の低レベルの結果。 操作がまだ完了していない場合はNULLになります。 |
High-level result of the I/O operation: I/O操作の高レベルの結果は以下になります。
|
Description of what the I/O operation is targeting. I/O操作の対象になるものの説明。 |
Flag indicating whether the I/O is executed synchronously. I/Oが同期的に実行されるかどうかを示すフラグ。 |
Flag indicating whether the I/O references process local memory. I/Oがプロセスのローカルメモリを参照しているかどうかを示すフラグ。 |
Flag indicating whether the I/O is buffered I/O. I/Oがバッファ付きI/Oかどうかを示すフラグ。 |
The <structname>pg_aios</structname> view is read-only.
pg_aiosビューは読み取り専用です。
By default, the <structname>pg_aios</structname> view can be read only by
superusers or roles with privileges of the
<literal>pg_read_all_stats</literal> role.
デフォルトではpg_aiosビューはスーパーユーザか、pg_read_all_statsロールの権限を持つロールだけが読み取りできます。