select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM VIEWS

The pg_aios view lists all Asynchronous I/O handles that are currently in-use.

Kind
System views
Columns in this snapshot
15
Definition source
English manual

Columns 15

ColumnTypeDescription / reference
pidint4Process ID of the server process that is issuing this I/O.
io_idint4Identifier 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_generationint8Generation of the I/O handle.
statetextState of the I/O handle:
operationtextOperation performed using the I/O handle:
offint8Offset of the I/O operation.
lengthint8Length of the I/O operation.
targettextWhat kind of object is the I/O targeting:
handle_data_lenint2Length of the data associated with the I/O operation. For I/O to/from shared_buffers and temp_buffers, this indicates the number of buffers the I/O is operating on.
raw_resultint4Low-level result of the I/O operation, or NULL if the operation has not yet completed.
resulttextHigh-level result of the I/O operation:
target_desctextDescription of what the I/O operation is targeting.
f_syncboolFlag indicating whether the I/O is executed synchronously.
f_localmemboolFlag indicating whether the I/O references process local memory.
f_bufferedboolFlag indicating whether the I/O is buffered I/O.
Column history across versions
Version history 1
  1. PG 17 → 18added

Definition snapshot: english-manuals:208eb53559cc84458ac2e6cd4e1… · English manual source