53.2. pg_aios
pg_aios
The pg_aios view lists all 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. pg_aios contains one row for each I/O handle.
This view is mainly useful for developers of PostgreSQL, but may also be useful when tuning PostgreSQL.
Column Type Description |
|---|
pid Process ID of the server process that is issuing this I/O. |
io_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 pg_aios.io_generation is incremented. |
io_generation Generation of the I/O handle. |
state State of the I/O handle:
|
operation Operation performed using the I/O handle:
|
off Offset of the I/O operation. |
length Length of the I/O operation. |
target What kind of object is the I/O targeting:
|
handle_data_len Length of the data associated with the I/O operation. For I/O to/from [shared_buffers (integer)
|
raw_result Low-level result of the I/O operation, or NULL if the operation has not yet completed. |
result High-level result of the I/O operation:
|
target_desc Description of what the I/O operation is targeting. |
f_sync Flag indicating whether the I/O is executed synchronously. |
f_localmem Flag indicating whether the I/O references process local memory. |
f_buffered Flag indicating whether the I/O is buffered I/O. |
: pg_aios Columns
The pg_aios view is read-only.
By default, the pg_aios view can be read only by superusers or roles with privileges of the pg_read_all_stats role.