{"Entry":{"collection":"catalog","key":"pg_stat_io","name":"pg_stat_io","aliases":[],"metadata":{"changed_in":["18"],"changes":[{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"15","order":false,"removed":[],"status":"added","to":"16","types":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"The context of an I/O operation. Possible values are:\n\nnormal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written out from shared buffers. Thus, reads and writes of relation data to and from shared buffers are tracked in context normal. vacuum: I/O operations performed outside of shared buffers while vacuuming and analyzing permanent relations. Temporary table vacuums use the same local buffer pool as other temporary table IO operations and are tracked in context normal. bulkread: Certain large read I/O operations done outside of shared buffers, for example, a sequential scan of a large table. bulkwrite: Certain large write I/O operations done outside of shared buffers, such as COPY.","name":"context","to":"The context of an I/O operation. Possible values are:\n\nnormal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written out from shared buffers. Thus, reads and writes of relation data to and from shared buffers are tracked in context normal. vacuum: I/O operations performed outside of shared buffers while vacuuming and analyzing permanent relations. Temporary table vacuums use the same local buffer pool as other temporary table I/O operations and are tracked in context normal. bulkread: Certain large read I/O operations done outside of shared buffers, for example, a sequential scan of a large table. bulkwrite: Certain large write I/O operations done outside of shared buffers, such as COPY."}],"from":"16","listing":[],"order":false,"removed":[],"status":"reworded","to":"17","types":[],"unlisted":[]},{"added":["read_bytes","write_bytes","extend_bytes"],"attributes":[],"description_changed":true,"descriptions":[{"from":"The context of an I/O operation. Possible values are:\n\nnormal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written out from shared buffers. Thus, reads and writes of relation data to and from shared buffers are tracked in context normal. vacuum: I/O operations performed outside of shared buffers while vacuuming and analyzing permanent relations. Temporary table vacuums use the same local buffer pool as other temporary table I/O operations and are tracked in context normal. bulkread: Certain large read I/O operations done outside of shared buffers, for example, a sequential scan of a large table. bulkwrite: Certain large write I/O operations done outside of shared buffers, such as COPY.","name":"context","to":"The context of an I/O operation. Possible values are:\n\nnormal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written out from shared buffers. Thus, reads and writes of relation data to and from shared buffers are tracked in context normal. init: I/O operations performed while creating the WAL segments are tracked in context init. vacuum: I/O operations performed outside of shared buffers while vacuuming and analyzing permanent relations. Temporary table vacuums use the same local buffer pool as other temporary table I/O operations and are tracked in context normal. bulkread: Certain large read I/O operations done outside of shared buffers, for example, a sequential scan of a large table. bulkwrite: Certain large write I/O operations done outside of shared buffers, such as COPY."},{"from":"Time spent in extend operations in milliseconds (if track_io_timing is enabled, otherwise zero)","name":"extend_time","to":"Time spent waiting for extend operations in milliseconds. (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)"},{"from":"Number of relation extend operations, each of the size specified in op_bytes.","name":"extends","to":"Number of relation extend operations."},{"from":"Time spent in fsync operations in milliseconds (if track_io_timing is enabled, otherwise zero)","name":"fsync_time","to":"Time spent waiting for fsync operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)"},{"from":"Target object of an I/O operation. Possible values are:\n\nrelation: Permanent relations. temp relation: Temporary relations.","name":"object","to":"Target object of an I/O operation. Possible values are:\n\nrelation: Permanent relations. temp relation: Temporary relations. wal: Write Ahead Logs."},{"from":"Time spent in read operations in milliseconds (if track_io_timing is enabled, otherwise zero)","name":"read_time","to":"Time spent waiting for read operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)"},{"from":"Number of read operations, each of the size specified in op_bytes.","name":"reads","to":"Number of read operations."},{"from":"Time spent in write operations in milliseconds (if track_io_timing is enabled, otherwise zero)","name":"write_time","to":"Time spent waiting for write operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)"},{"from":"Time spent in writeback operations in milliseconds (if track_io_timing is enabled, otherwise zero). This includes the time spent queueing write-out requests and, potentially, the time spent to write out the dirty data.","name":"writeback_time","to":"Time spent waiting for writeback operations in milliseconds (if track_io_timing is enabled, otherwise zero). This includes the time spent queueing write-out requests and, potentially, the time spent to write out the dirty data."},{"from":"Number of units of size op_bytes which the process requested the kernel write out to permanent storage.","name":"writebacks","to":"Number of units of size BLCKSZ (typically 8kB) which the process requested the kernel write out to permanent storage."},{"from":"Number of write operations, each of the size specified in op_bytes.","name":"writes","to":"Number of write operations."}],"from":"17","listing":[],"order":false,"removed":["op_bytes"],"status":"changed","to":"18","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"Time spent waiting for read operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","name":"read_time","to":"Time spent waiting for read operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero). This may include time spent waiting for a read started by another backend. In that case reads may still be zero."}],"from":"18","listing":[],"order":false,"removed":[],"status":"reworded","to":"19","types":[],"unlisted":[]}],"column_count":20,"content_hash":"9687158d7af200a4189de260e733d1ba91c498fa248e620da3e1cd8d041a2476","derived_content_hash":"3f911c1e7fc4ba988f1b506515a90a8b7257d435a1a53d2c98abe48b6a11d125","documentation_refresh":{"batch":"20261113","original_source_rev":"catalog-bilingual-repair:d0f1c7940dd0dc24597e9c48c2302f4f2c84a4a3532a9fa7f427ff26705f5c74","versions":{"16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"16","imported_at":"2026-09-30T00:40:55.921368+08:00","kind":"statistics","last_version":"20","name":"pg_stat_io","position":91,"present_in":["16","17","18","19","20"],"relation_oid":null,"relkind":"v","shared":false,"source_rev":"catalog-bilingual-repair:d0f1c7940dd0dc24597e9c48c2302f4f2c84a4a3532a9fa7f427ff26705f5c74","summary":"The pg_stat_io view will contain one row for each combination of backend type, target I/O object, and I/O context, showing cluster-wide I/O statistics.","summary_zh":"pg_stat_io 视图对每种后端类型、目标 I/O 对象和 I/O 上下文的组合各提供一行，显示整个集簇范围内的 I/O 统计信息。没有意义的组合会被省略。"}},"Definition":{"Collection":"catalog","Key":"pg_stat_io","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_stat_io","SourceRevision":"catalog-bilingual-repair:d0f1c7940dd0dc24597e9c48c2302f4f2c84a4a3532a9fa7f427ff26705f5c74","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"Type of backend (e.g. background worker, autovacuum worker). See pg_stat_activity for more information on backend_types. Some backend_types do not accumulate I/O operation statistics and will not be included in the view.","description_zh":"后端类型（例如后台工作进程、自动清理工作进程）。有关 backend_type 的更多信息，请参阅 pg_stat_activity。某些 backend_type 不会累积 I/O 操作统计信息，因此不会出现在该视图中。","documented":true,"documented_name":"backend_type","hidden":false,"name":"backend_type","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":2,"description":"Target object of an I/O operation. Possible values are:\n\nrelation: Permanent relations. temp relation: Temporary relations. wal: Write Ahead Logs.","description_zh":"I/O 操作的目标对象。可能的值有：\n\nrelation：永久关系。 temp relation：临时关系。 wal：预写式日志。","documented":true,"documented_name":"object","hidden":false,"name":"object","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":3,"description":"The context of an I/O operation. Possible values are:\n\nnormal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written out from shared buffers. Thus, reads and writes of relation data to and from shared buffers are tracked in context normal. init: I/O operations performed while creating the WAL segments are tracked in context init. vacuum: I/O operations performed outside of shared buffers while vacuuming and analyzing permanent relations. Temporary table vacuums use the same local buffer pool as other temporary table I/O operations and are tracked in context normal. bulkread: Certain large read I/O operations done outside of shared buffers, for example, a sequential scan of a large table. bulkwrite: Certain large write I/O operations done outside of shared buffers, such as COPY.","description_zh":"I/O 操作的上下文。可能的值有：\n\nnormal：某类 I/O 操作的默认或标准 context。例如，默认情况下关系数据会读入共享缓冲区并从共享缓冲区写出，因此关系数据与共享缓冲区之间的读写会在 context 为 normal 时跟踪。 init：创建 WAL 段时执行的 I/O 操作会在 context 为 init 时跟踪。 vacuum：对永久关系执行清理和分析时，在共享缓冲区之外执行的 I/O 操作。临时表清理与其他临时表 I/O 操作共用同一本地缓冲池，因此会在 context 为 normal 时跟踪。 bulkread：某些在共享缓冲区之外执行的大型读取 I/O 操作，例如对大表的顺序扫描。 bulkwrite：某些在共享缓冲区之外执行的大型写入 I/O 操作，例如 COPY。","documented":true,"documented_name":"context","hidden":false,"name":"context","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":4,"description":"Number of read operations.","description_zh":"读取操作的数量。","documented":true,"documented_name":"reads","hidden":false,"name":"reads","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":5,"description":"The total size of read operations in bytes.","description_zh":"读取操作的总大小（以字节为单位）。","documented":true,"documented_name":"read_bytes","hidden":false,"name":"read_bytes","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":6,"description":"Time spent waiting for read operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待读取操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"read_time","hidden":false,"name":"read_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":7,"description":"Number of write operations.","description_zh":"写入操作的数量。","documented":true,"documented_name":"writes","hidden":false,"name":"writes","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":8,"description":"The total size of write operations in bytes.","description_zh":"写入操作的总大小（以字节为单位）。","documented":true,"documented_name":"write_bytes","hidden":false,"name":"write_bytes","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":9,"description":"Time spent waiting for write operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待写入操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"write_time","hidden":false,"name":"write_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":10,"description":"Number of units of size BLCKSZ (typically 8kB) which the process requested the kernel write out to permanent storage.","description_zh":"进程请求内核写出到永久存储的、大小为 BLCKSZ（通常为 8kB）的单位数量。","documented":true,"documented_name":"writebacks","hidden":false,"name":"writebacks","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":11,"description":"Time spent waiting for writeback operations in milliseconds (if track_io_timing is enabled, otherwise zero). This includes the time spent queueing write-out requests and, potentially, the time spent to write out the dirty data.","description_zh":"等待写回操作所花费的时间，以毫秒计（如果启用了 track_io_timing，否则为零）。这包括排队写出请求所花费的时间，以及可能实际写出脏数据所花费的时间。","documented":true,"documented_name":"writeback_time","hidden":false,"name":"writeback_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":12,"description":"Number of relation extend operations.","description_zh":"关系扩展操作的数量。","documented":true,"documented_name":"extends","hidden":false,"name":"extends","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":13,"description":"The total size of relation extend operations in bytes.","description_zh":"关系扩展操作的总大小（以字节为单位）。","documented":true,"documented_name":"extend_bytes","hidden":false,"name":"extend_bytes","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":14,"description":"Time spent waiting for extend operations in milliseconds. (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待扩展操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"extend_time","hidden":false,"name":"extend_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":15,"description":"The number of times a desired block was found in a shared buffer.","description_zh":"在共享缓冲区中找到所需块的次数。","documented":true,"documented_name":"hits","hidden":false,"name":"hits","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":16,"description":"Number of times a block has been written out from a shared or local buffer in order to make it available for another use.\n\nIn context normal, this counts the number of times a block was evicted from a buffer and replaced with another block. In contexts bulkwrite, bulkread, and vacuum, this counts the number of times a block was evicted from shared buffers in order to add the shared buffer to a separate, size-limited ring buffer for use in a bulk I/O operation.","description_zh":"为了腾出空间供其他用途而将块从共享或本地缓冲区写出的次数。\n\n在 context 为 normal 时，这会统计块从缓冲区中被驱逐并由另一个块替换的次数。在 context 为 bulkwrite、bulkread 和 vacuum 时，这会统计块从共享缓冲区中被驱逐，从而把该共享缓冲区加入到单独的、大小受限的环形缓冲区中以供批量 I/O 操作使用的次数。","documented":true,"documented_name":"evictions","hidden":false,"name":"evictions","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":17,"description":"The number of times an existing buffer in a size-limited ring buffer outside of shared buffers was reused as part of an I/O operation in the bulkread, bulkwrite, or vacuum contexts.","description_zh":"在 bulkread、bulkwrite 或 vacuum 这些 context 中，作为 I/O 操作一部分，位于共享缓冲区之外的大小受限环形缓冲区中已有缓冲区被重用的次数。","documented":true,"documented_name":"reuses","hidden":false,"name":"reuses","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":18,"description":"Number of fsync calls. These are only tracked in context normal.","description_zh":"fsync 调用次数。这些只会在 context 为 normal 时被跟踪。","documented":true,"documented_name":"fsyncs","hidden":false,"name":"fsyncs","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":19,"description":"Time spent waiting for fsync operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待 fsync 操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"fsync_time","hidden":false,"name":"fsync_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":20,"description":"Time at which these statistics were last reset.","description_zh":"这些统计信息上次被重置的时间。","documented":true,"documented_name":"stats_reset","hidden":false,"name":"stats_reset","not_null":false,"references":"","type":"timestamp with time zone","type_modifier":-1,"type_oid":1184,"zh_from":"same-version-manual"}],"description":"The pg_stat_io view will contain one row for each combination of backend type, target I/O object, and I/O context, showing cluster-wide I/O statistics. Combinations which do not make sense are omitted.\n\nCurrently, I/O on relations (e.g. tables, indexes) and WAL activity are tracked. However, relation I/O which bypasses shared buffers (e.g. when moving a table from one tablespace to another) is currently not tracked.","description_zh":"pg_stat_io 视图对每种后端类型、目标 I/O 对象和 I/O 上下文的组合各提供一行，显示整个集簇范围内的 I/O 统计信息。没有意义的组合会被省略。\n\n目前会跟踪关系（例如表、索引）的 I/O 以及 WAL 活动。不过，绕过共享缓冲区的关系 I/O（例如将表从一个表空间移动到另一个表空间时）目前不会被跟踪。","description_zh_html":"\u003cp\u003epg_stat_io 视图对每种后端类型、目标 I/O 对象和 I/O 上下文的组合各提供一行，显示整个集簇范围内的 I/O 统计信息。没有意义的组合会被省略。\n\n目前会跟踪关系（例如表、索引）的 I/O 以及 WAL 活动。不过，绕过共享缓冲区的关系 I/O（例如将表从一个表空间移动到另一个表空间时）目前不会被跟踪。\u003c/p\u003e\u003cdiv class=\"table\" id=\"PG-STAT-IO-VIEW\"\u003e\u003cp class=\"title\"\u003e\u003cstrong\u003e表 27.23. \u003ccode class=\"structname\"\u003epg_stat_io\u003c/code\u003e 视图\u003c/strong\u003e\u003c/p\u003e\u003cdiv class=\"table-contents\"\u003e\u003ctable border=\"1\" class=\"table\" summary=\"pg_stat_io 视图\"\u003e\u003ccolgroup\u003e\u003ccol/\u003e\u003c/colgroup\u003e\u003cthead\u003e\u003ctr\u003e\u003cth class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n        列类型\n       \u003c/p\u003e\n\u003cp\u003e\n        描述\n       \u003c/p\u003e\n\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ebackend_type\u003c/code\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        后端类型（例如后台工作进程、自动清理工作进程）。有关 \u003ccode class=\"varname\"\u003ebackend_type\u003c/code\u003e 的更多信息，请参阅 \u003ca class=\"link\" href=\"/zh/docs/18/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW\" title=\"27.2.3. pg_stat_activity\"\u003e\u003ccode class=\"structname\"\u003epg_stat_activity\u003c/code\u003e\u003c/a\u003e。某些 \u003ccode class=\"varname\"\u003ebackend_type\u003c/code\u003e 不会累积 I/O 操作统计信息，因此不会出现在该视图中。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eobject\u003c/code\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        I/O 操作的目标对象。可能的值有：\n\n       \u003c/p\u003e\u003cdiv class=\"itemizedlist\"\u003e\u003cul class=\"itemizedlist\" style=\"list-style-type: disc; \"\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003erelation\u003c/code\u003e：永久关系。\n         \u003c/p\u003e\u003c/li\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003etemp relation\u003c/code\u003e：临时关系。\n         \u003c/p\u003e\u003c/li\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003ewal\u003c/code\u003e：预写式日志。\n         \u003c/p\u003e\u003c/li\u003e\u003c/ul\u003e\u003c/div\u003e\u003cp\u003e\n\u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003econtext\u003c/code\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        I/O 操作的上下文。可能的值有：\n       \u003c/p\u003e\n\u003cdiv class=\"itemizedlist\"\u003e\u003cul class=\"itemizedlist\" style=\"list-style-type: disc; \"\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003enormal\u003c/code\u003e：某类 I/O 操作的默认或标准 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e。例如，默认情况下关系数据会读入共享缓冲区并从共享缓冲区写出，因此关系数据与共享缓冲区之间的读写会在 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 为 \u003ccode class=\"literal\"\u003enormal\u003c/code\u003e 时跟踪。\n         \u003c/p\u003e\u003c/li\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003einit\u003c/code\u003e：创建 WAL 段时执行的 I/O 操作会在 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 为 \u003ccode class=\"literal\"\u003einit\u003c/code\u003e 时跟踪。\n         \u003c/p\u003e\u003c/li\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003evacuum\u003c/code\u003e：对永久关系执行清理和分析时，在共享缓冲区之外执行的 I/O 操作。临时表清理与其他临时表 I/O 操作共用同一本地缓冲池，因此会在 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 为 \u003ccode class=\"literal\"\u003enormal\u003c/code\u003e 时跟踪。\n         \u003c/p\u003e\u003c/li\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003ebulkread\u003c/code\u003e：某些在共享缓冲区之外执行的大型读取 I/O 操作，例如对大表的顺序扫描。\n         \u003c/p\u003e\u003c/li\u003e\u003cli class=\"listitem\"\u003e\u003cp\u003e\n\u003ccode class=\"literal\"\u003ebulkwrite\u003c/code\u003e：某些在共享缓冲区之外执行的大型写入 I/O 操作，例如 \u003ccode class=\"command\"\u003eCOPY\u003c/code\u003e。\n         \u003c/p\u003e\u003c/li\u003e\u003c/ul\u003e\u003c/div\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ereads\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        读取操作的数量。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eread_bytes\u003c/code\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        读取操作的总大小（以字节为单位）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eread_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        等待读取操作所花费的时间，以毫秒计（如果启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-IO-TIMING\"\u003etrack_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 不是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e，或者启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-WAL-IO-TIMING\"\u003etrack_wal_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e；否则为零）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ewrites\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        写入操作的数量。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ewrite_bytes\u003c/code\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        写入操作的总大小（以字节为单位）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ewrite_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        等待写入操作所花费的时间，以毫秒计（如果启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-IO-TIMING\"\u003etrack_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 不是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e，或者启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-WAL-IO-TIMING\"\u003etrack_wal_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e；否则为零）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ewritebacks\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        进程请求内核写出到永久存储的、大小为 \u003ccode class=\"symbol\"\u003eBLCKSZ\u003c/code\u003e（通常为 8kB）的单位数量。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ewriteback_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        等待写回操作所花费的时间，以毫秒计（如果启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-IO-TIMING\"\u003etrack_io_timing\u003c/a\u003e，否则为零）。这包括排队写出请求所花费的时间，以及可能实际写出脏数据所花费的时间。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eextends\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        关系扩展操作的数量。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eextend_bytes\u003c/code\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        关系扩展操作的总大小（以字节为单位）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eextend_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        等待扩展操作所花费的时间，以毫秒计（如果启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-IO-TIMING\"\u003etrack_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 不是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e，或者启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-WAL-IO-TIMING\"\u003etrack_wal_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e；否则为零）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ehits\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        在共享缓冲区中找到所需块的次数。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eevictions\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        为了腾出空间供其他用途而将块从共享或本地缓冲区写出的次数。\n       \u003c/p\u003e\n\u003cp\u003e\n        在 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 为 \u003ccode class=\"literal\"\u003enormal\u003c/code\u003e 时，这会统计块从缓冲区中被驱逐并由另一个块替换的次数。在 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 为 \u003ccode class=\"literal\"\u003ebulkwrite\u003c/code\u003e、\u003ccode class=\"literal\"\u003ebulkread\u003c/code\u003e 和 \u003ccode class=\"literal\"\u003evacuum\u003c/code\u003e 时，这会统计块从共享缓冲区中被驱逐，从而把该共享缓冲区加入到单独的、大小受限的环形缓冲区中以供批量 I/O 操作使用的次数。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ereuses\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        在 \u003ccode class=\"literal\"\u003ebulkread\u003c/code\u003e、\u003ccode class=\"literal\"\u003ebulkwrite\u003c/code\u003e 或 \u003ccode class=\"literal\"\u003evacuum\u003c/code\u003e 这些 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 中，作为 I/O 操作一部分，位于共享缓冲区之外的大小受限环形缓冲区中已有缓冲区被重用的次数。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003efsyncs\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n\u003ccode class=\"literal\"\u003efsync\u003c/code\u003e 调用次数。这些只会在 \u003ccode class=\"varname\"\u003econtext\u003c/code\u003e 为 \u003ccode class=\"literal\"\u003enormal\u003c/code\u003e 时被跟踪。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003efsync_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n        等待 fsync 操作所花费的时间，以毫秒计（如果启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-IO-TIMING\"\u003etrack_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 不是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e，或者启用了 \u003ca class=\"xref\" href=\"/zh/docs/18/runtime-config-statistics.html#GUC-TRACK-WAL-IO-TIMING\"\u003etrack_wal_io_timing\u003c/a\u003e 且 \u003ccode class=\"varname\"\u003eobject\u003c/code\u003e 是 \u003ccode class=\"literal\"\u003ewal\u003c/code\u003e；否则为零）。\n       \u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\n\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003estats_reset\u003c/code\u003e \u003ccode class=\"type\"\u003etimestamp with time zone\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e这些统计信息上次被重置的时间。\u003c/p\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\u003c/div\u003e\u003c/div\u003e","doc":{"anchor":"PG-STAT-IO-VIEW","file":"monitoring-stats.html","lang":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","slug":"18"},"documentation_revision":{"inputs":[{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","version":"18.7"},{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"1ddb6576fe569e029a1c776c82e7add6be8e4f41705bcd8f66f4347fe23372b6","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"kind":"statistics","lang":"en","measured_attributes":true,"metadata_release":"18.6","runtime_columns":["backend_type","object","context","reads","read_bytes","read_time","writes","write_bytes","write_time","writebacks","writeback_time","extends","extend_bytes","extend_time","hits","evictions","reuses","fsyncs","fsync_time","stats_reset"],"runtime_verified":false,"source":"english-manual","sources":[{"evidence":[{"build_id":107,"kind":"same-version-manual","locale":"zh-Hans","page":"monitoring-stats.html","sha256":"0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53","source_revision":"unknown:rendered-translation-baseline","translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","version":"18"}],"kind":"catalog-bilingual-repair","prior_source_revision":"english-manuals:a988e06d8d8fb9a062eea416969862905d48bb408de1758b55654bc39caebecc","version":"18"}],"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"PG-STAT-IO-VIEW","file":"monitoring-stats.html","lang":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","slug":"18"},"sources":[{"evidence":[{"build_id":107,"kind":"same-version-manual","locale":"zh-Hans","page":"monitoring-stats.html","sha256":"0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53","source_revision":"unknown:rendered-translation-baseline","translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","version":"18"}],"kind":"catalog-bilingual-repair","prior_source_revision":"english-manuals:a988e06d8d8fb9a062eea416969862905d48bb408de1758b55654bc39caebecc","version":"18"}]},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["backend_type","object","context","reads","read_bytes","read_time","writes","write_bytes","write_time","writebacks","writeback_time","extends","extend_bytes","extend_time","hits","evictions","reuses","fsyncs","fsync_time","stats_reset"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_stat_io","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_stat_io","Summary":"The pg_stat_io view will contain one row for each combination of backend type, target I/O object, and I/O context, showing cluster-wide I/O statistics. Combinations which do not make sense are omitted.\n\nCurrently, I/O on relations (e.g. tables, indexes) and WAL activity are tracked. However, relation I/O which bypasses shared buffers (e.g. when moving a table from one tablespace to another) is currently not tracked.","BodyHTML":"\u003cp\u003eThe pg_stat_io view will contain one row for each combination of backend type, target I/O object, and I/O context, showing cluster-wide I/O statistics. Combinations which do not make sense are omitted.\n\nCurrently, I/O on relations (e.g. tables, indexes) and WAL activity are tracked. However, relation I/O which bypasses shared buffers (e.g. when moving a table from one tablespace to another) is currently not tracked.\u003c/p\u003e","SourceRevision":"catalog-bilingual-repair:d0f1c7940dd0dc24597e9c48c2302f4f2c84a4a3532a9fa7f427ff26705f5c74","ContentHash":"dd791b4c4fd730fecbe7d89c3239d68a3790ac90445b125d438c88983aa5b85f","Payload":{"columns":[{"array_dimensions":0,"attnum":1,"description":"Type of backend (e.g. background worker, autovacuum worker). See pg_stat_activity for more information on backend_types. Some backend_types do not accumulate I/O operation statistics and will not be included in the view.","description_zh":"后端类型（例如后台工作进程、自动清理工作进程）。有关 backend_type 的更多信息，请参阅 pg_stat_activity。某些 backend_type 不会累积 I/O 操作统计信息，因此不会出现在该视图中。","documented":true,"documented_name":"backend_type","hidden":false,"name":"backend_type","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":2,"description":"Target object of an I/O operation. Possible values are:\n\nrelation: Permanent relations. temp relation: Temporary relations. wal: Write Ahead Logs.","description_zh":"I/O 操作的目标对象。可能的值有：\n\nrelation：永久关系。 temp relation：临时关系。 wal：预写式日志。","documented":true,"documented_name":"object","hidden":false,"name":"object","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":3,"description":"The context of an I/O operation. Possible values are:\n\nnormal: The default or standard context for a type of I/O operation. For example, by default, relation data is read into and written out from shared buffers. Thus, reads and writes of relation data to and from shared buffers are tracked in context normal. init: I/O operations performed while creating the WAL segments are tracked in context init. vacuum: I/O operations performed outside of shared buffers while vacuuming and analyzing permanent relations. Temporary table vacuums use the same local buffer pool as other temporary table I/O operations and are tracked in context normal. bulkread: Certain large read I/O operations done outside of shared buffers, for example, a sequential scan of a large table. bulkwrite: Certain large write I/O operations done outside of shared buffers, such as COPY.","description_zh":"I/O 操作的上下文。可能的值有：\n\nnormal：某类 I/O 操作的默认或标准 context。例如，默认情况下关系数据会读入共享缓冲区并从共享缓冲区写出，因此关系数据与共享缓冲区之间的读写会在 context 为 normal 时跟踪。 init：创建 WAL 段时执行的 I/O 操作会在 context 为 init 时跟踪。 vacuum：对永久关系执行清理和分析时，在共享缓冲区之外执行的 I/O 操作。临时表清理与其他临时表 I/O 操作共用同一本地缓冲池，因此会在 context 为 normal 时跟踪。 bulkread：某些在共享缓冲区之外执行的大型读取 I/O 操作，例如对大表的顺序扫描。 bulkwrite：某些在共享缓冲区之外执行的大型写入 I/O 操作，例如 COPY。","documented":true,"documented_name":"context","hidden":false,"name":"context","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":4,"description":"Number of read operations.","description_zh":"读取操作的数量。","documented":true,"documented_name":"reads","hidden":false,"name":"reads","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":5,"description":"The total size of read operations in bytes.","description_zh":"读取操作的总大小（以字节为单位）。","documented":true,"documented_name":"read_bytes","hidden":false,"name":"read_bytes","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":6,"description":"Time spent waiting for read operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待读取操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"read_time","hidden":false,"name":"read_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":7,"description":"Number of write operations.","description_zh":"写入操作的数量。","documented":true,"documented_name":"writes","hidden":false,"name":"writes","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":8,"description":"The total size of write operations in bytes.","description_zh":"写入操作的总大小（以字节为单位）。","documented":true,"documented_name":"write_bytes","hidden":false,"name":"write_bytes","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":9,"description":"Time spent waiting for write operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待写入操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"write_time","hidden":false,"name":"write_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":10,"description":"Number of units of size BLCKSZ (typically 8kB) which the process requested the kernel write out to permanent storage.","description_zh":"进程请求内核写出到永久存储的、大小为 BLCKSZ（通常为 8kB）的单位数量。","documented":true,"documented_name":"writebacks","hidden":false,"name":"writebacks","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":11,"description":"Time spent waiting for writeback operations in milliseconds (if track_io_timing is enabled, otherwise zero). This includes the time spent queueing write-out requests and, potentially, the time spent to write out the dirty data.","description_zh":"等待写回操作所花费的时间，以毫秒计（如果启用了 track_io_timing，否则为零）。这包括排队写出请求所花费的时间，以及可能实际写出脏数据所花费的时间。","documented":true,"documented_name":"writeback_time","hidden":false,"name":"writeback_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":12,"description":"Number of relation extend operations.","description_zh":"关系扩展操作的数量。","documented":true,"documented_name":"extends","hidden":false,"name":"extends","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":13,"description":"The total size of relation extend operations in bytes.","description_zh":"关系扩展操作的总大小（以字节为单位）。","documented":true,"documented_name":"extend_bytes","hidden":false,"name":"extend_bytes","not_null":false,"references":"","type":"numeric","type_modifier":-1,"type_oid":1700,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":14,"description":"Time spent waiting for extend operations in milliseconds. (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待扩展操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"extend_time","hidden":false,"name":"extend_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":15,"description":"The number of times a desired block was found in a shared buffer.","description_zh":"在共享缓冲区中找到所需块的次数。","documented":true,"documented_name":"hits","hidden":false,"name":"hits","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":16,"description":"Number of times a block has been written out from a shared or local buffer in order to make it available for another use.\n\nIn context normal, this counts the number of times a block was evicted from a buffer and replaced with another block. In contexts bulkwrite, bulkread, and vacuum, this counts the number of times a block was evicted from shared buffers in order to add the shared buffer to a separate, size-limited ring buffer for use in a bulk I/O operation.","description_zh":"为了腾出空间供其他用途而将块从共享或本地缓冲区写出的次数。\n\n在 context 为 normal 时，这会统计块从缓冲区中被驱逐并由另一个块替换的次数。在 context 为 bulkwrite、bulkread 和 vacuum 时，这会统计块从共享缓冲区中被驱逐，从而把该共享缓冲区加入到单独的、大小受限的环形缓冲区中以供批量 I/O 操作使用的次数。","documented":true,"documented_name":"evictions","hidden":false,"name":"evictions","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":17,"description":"The number of times an existing buffer in a size-limited ring buffer outside of shared buffers was reused as part of an I/O operation in the bulkread, bulkwrite, or vacuum contexts.","description_zh":"在 bulkread、bulkwrite 或 vacuum 这些 context 中，作为 I/O 操作一部分，位于共享缓冲区之外的大小受限环形缓冲区中已有缓冲区被重用的次数。","documented":true,"documented_name":"reuses","hidden":false,"name":"reuses","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":18,"description":"Number of fsync calls. These are only tracked in context normal.","description_zh":"fsync 调用次数。这些只会在 context 为 normal 时被跟踪。","documented":true,"documented_name":"fsyncs","hidden":false,"name":"fsyncs","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":19,"description":"Time spent waiting for fsync operations in milliseconds (if track_io_timing is enabled and object is not wal, or if track_wal_io_timing is enabled and object is wal, otherwise zero)","description_zh":"等待 fsync 操作所花费的时间，以毫秒计（如果启用了 track_io_timing 且 object 不是 wal，或者启用了 track_wal_io_timing 且 object 是 wal；否则为零）。","documented":true,"documented_name":"fsync_time","hidden":false,"name":"fsync_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":20,"description":"Time at which these statistics were last reset.","description_zh":"这些统计信息上次被重置的时间。","documented":true,"documented_name":"stats_reset","hidden":false,"name":"stats_reset","not_null":false,"references":"","type":"timestamp with time zone","type_modifier":-1,"type_oid":1184,"zh_from":"same-version-manual"}],"description":"The pg_stat_io view will contain one row for each combination of backend type, target I/O object, and I/O context, showing cluster-wide I/O statistics. Combinations which do not make sense are omitted.\n\nCurrently, I/O on relations (e.g. tables, indexes) and WAL activity are tracked. However, relation I/O which bypasses shared buffers (e.g. when moving a table from one tablespace to another) is currently not tracked."}},"RequestedLocale":"en","Fallback":false,"Versions":["16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
