pg_aios

列出所有正在使用的异步 I/O 句柄的视图

pg_aios 是一个 系统目录 视图,列出了所有当前正在使用的异步 I/O 句柄。

pg_aiosPostgreSQL 18 中添加。

用法

默认情况下,pg_aios 只能由超级用户或具有 pg_read_all_stats 角色的权限的角色读取。

按 PostgreSQL 版本定义

pg_aios (PostgreSQL 19)

                  View "pg_catalog.pg_aios"
     Column      |   Type   | Collation | Nullable | Default 
-----------------+----------+-----------+----------+---------
 pid             | integer  |           |          | 
 io_id           | integer  |           |          | 
 io_generation   | bigint   |           |          | 
 state           | text     |           |          | 
 operation       | text     |           |          | 
 off             | bigint   |           |          | 
 length          | bigint   |           |          | 
 target          | text     |           |          | 
 handle_data_len | smallint |           |          | 
 raw_result      | integer  |           |          | 
 result          | text     |           |          | 
 target_desc     | text     |           |          | 
 f_sync          | boolean  |           |          | 
 f_localmem      | boolean  |           |          | 
 f_buffered      | boolean  |           |          |
    

文档pg_aios

pg_aios (PostgreSQL 18)

                  View "pg_catalog.pg_aios"
     Column      |   Type   | Collation | Nullable | Default 
-----------------+----------+-----------+----------+---------
 pid             | integer  |           |          | 
 io_id           | integer  |           |          | 
 io_generation   | bigint   |           |          | 
 state           | text     |           |          | 
 operation       | text     |           |          | 
 off             | bigint   |           |          | 
 length          | bigint   |           |          | 
 target          | text     |           |          | 
 handle_data_len | smallint |           |          | 
 raw_result      | integer  |           |          | 
 result          | text     |           |          | 
 target_desc     | text     |           |          | 
 f_sync          | boolean  |           |          | 
 f_localmem      | boolean  |           |          | 
 f_buffered      | boolean  |           |          |
    

文档pg_aios

变更历史

分类

异步 I/O, 系统目录

另请参阅

io_method, io_workers

反馈

提交关于 "pg_aios" 的任何评论、建议或更正请 在此处进行。