{"Entry":{"collection":"metric","key":"pg_stat_io-hits","name":"pg_stat_io.hits","aliases":["hits","pg_stat_io"],"metadata":{"aliases":["hits","pg_stat_io"],"category":"pg_stat_io","content_hash":"e46e029de84d4e160a5136ddc5eef549a2a70fc33dd676a451e8fac05f7e0c18","imported_at":"2026-09-30T00:40:45.665838+08:00","name":"pg_stat_io.hits","name_zh":"","slug":"pg_stat_io-hits","summary":"The number of times a desired block was found in a shared buffer."}},"Definition":{"Collection":"metric","Key":"pg_stat_io-hits","SourceDatabase":"center","Version":"18","SourceTable":"statistics_metric","SourceKey":"pg_stat_io-hits","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","Facts":{"comparison_data":{"field":"hits","sql_type":"bigint","units_mentioned":[],"view":"pg_stat_io"},"comparison_hash":"4b380a0736a466aba645e3c4384b7c19e20053d785859b19d9ae7e8a9e1ba355","description":["The number of times a desired block was found in a shared buffer."],"documented":true,"facts":[{"label":"View","value":"pg_stat_io"},{"label":"Field","value":"hits"},{"label":"SQL type","value":"bigint"},{"label":"Units named in the field definition","value":"Not specified"},{"label":"Reset observation","value":"Time at which these statistics were last reset."}],"field":"hits","manual_html":"","manual_path":"/docs/18/monitoring-stats.html","related":[{"label":"pg_stat_io columns","url":"/wiki/catalog/pg_stat_io/?v=18"},{"label":"Statistics collection and reset functions","url":"/docs/18/monitoring-stats.html"}],"release":{"channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[{"paragraphs":["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."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT hits FROM pg_catalog.pg_stat_io;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"signature":"SELECT hits FROM pg_catalog.pg_stat_io;","source_only":false,"sources":[{"label":"PostgreSQL 18 English manual","path":"monitoring-stats.html","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","url":"/docs/18/monitoring-stats.html#PG-STAT-IO-VIEW"}],"sql_type":"bigint","tables":[],"units_mentioned":[],"view":"pg_stat_io"},"ManualEvidence":{"manual_path":"/docs/18/monitoring-stats.html","release":{"channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"label":"PostgreSQL 18 English manual","path":"monitoring-stats.html","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","url":"/docs/18/monitoring-stats.html#PG-STAT-IO-VIEW"}]},"MeasuredEvidence":{}},"Text":{"Collection":"metric","Key":"pg_stat_io-hits","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_stat_io.hits","Summary":"The number of times a desired block was found in a shared buffer.","BodyHTML":"\u003cp\u003eThe number of times a desired block was found in a shared buffer.\u003c/p\u003e","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","ContentHash":"fe0eb83d156d45fc70a732feac00cf726e034eba07452d5dcd368b67fd2d4b28","Payload":{"description":["The number of times a desired block was found in a shared buffer."],"manual_html":"","related":[{"label":"pg_stat_io columns","url":"/wiki/catalog/pg_stat_io/?v=18"},{"label":"Statistics collection and reset functions","url":"/docs/18/monitoring-stats.html"}],"sections":[{"paragraphs":["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."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT hits FROM pg_catalog.pg_stat_io;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
