{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1", "published": "2026-10-21T01:18:10Z", "publisher": "PostgresAI", "article": {"title": "Understanding Postgres IOPS: Why They Matter Even When Everything Fits in Cache | Crunchy Data Blog", "url": "https://www.crunchydata.com/blog/understanding-postgres-iops", "date_published": "2023-09-27T00:00:00Z", "author": "John Dalton", "publisher": "Crunchy Data"}, "grade": "C+", "axes": [{"axis": "Factual", "summary": "C \u00b7 4 wrong of 16 checked \u00b7 0 caveats \u00b7 partly assessed"}, {"axis": "Applicable", "summary": "B+ \u00b7 2 wrong of 9 checked \u00b7 2 caveats"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 16 checked \u00b7 1 caveat"}, {"axis": "Transparent", "summary": "A \u00b7 0 wrong of 8 checked \u00b7 0 caveats"}, {"axis": "Safe", "summary": "D \u00b7 1 wrong of 18 checked \u00b7 0 caveats"}], "findings": [{"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F4", "claim": "\u2026The track_io_timing will also start collecting statistics across several views\u2026", "title": "track_io_timing does not enable relation block counters", "explanation": "track_io_timing enables elapsed-time measurements. track_counts controls relation counters and defaults to on. src/backend/utils/activity/pgstat_relation.c:107 disables counting when track_counts is off. Enabling timing is unnecessary for the displayed pg_statio block counts.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/utils/activity/pgstat_relation.c#L107-L115", "label": "REL_16_0 \u00b7 src/backend/utils/activity/pgstat_relation.c:107-115"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/config.sgml#L8117-L8130", "label": "REL_16_0 \u00b7 doc/src/sgml/config.sgml:8117-8130"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/storage/buffer/bufmgr.c#L775-L779", "label": "REL_16_0 \u00b7 src/backend/storage/buffer/bufmgr.c:775-779"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/config.sgml#L8100-L8102", "label": "REL_16_0 \u00b7 doc/src/sgml/config.sgml:8100-8102"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F6", "claim": "\u2026that data all gets written into the WAL too even though none of it is changing.", "explanation": "PostgreSQL 16 can omit unchanged tuple prefixes and suffixes for same-page updates. Logical WAL and full-page images affect eligibility. src/backend/access/heap/heapam.c:8388-8408 describes these conditions. The article's full-row WAL claim is too broad. Its separate statement that splitting fields can help remains conditional.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/access/heap/heapam.c#L8388-L8392", "label": "REL_16_0 \u00b7 src/backend/access/heap/heapam.c:8388-8392"}, {"url": "https://github.com/postgres/postgres/blob/df1448b336794a097614df1a9be7ae40a8221f8c/src/backend/access/heap/heapam.c#L9063-L9083", "label": "REL_19_STABLE@df1448b336 \u00b7 src/backend/access/heap/heapam.c:9063-9083"}]}, {"anchor": "F23", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F23", "claim": "\u2026The track_io_timing will also start collecting statistics\u2026", "explanation": "track_counts controls database activity counters and defaults to on. track_io_timing enables elapsed-time measurements. Requiring timing before inspecting block counts adds an unnecessary configuration step.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/config.sgml#L8117-L8130", "label": "REL_16_0 \u00b7 doc/src/sgml/config.sgml:8117-8130"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/storage/buffer/bufmgr.c#L775-L779", "label": "REL_16_0 \u00b7 src/backend/storage/buffer/bufmgr.c:775-779"}, {"url": "https://www.postgresql.org/docs/current/runtime-config-statistics.html", "label": "https://www.postgresql.org/docs/current/runtime-config-statistics.html"}, {"url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/doc/src/sgml/config.sgml#L8237-L8246", "label": "REL_16_15 \u00b7 doc/src/sgml/config.sgml:8237-8246"}]}, {"anchor": "F2", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F2", "claim": "To reset all server statistics, run: SELECT pg_stat_reset();\u2026", "title": "The reset recommendation omits its effect on autovacuum", "explanation": "pg_stat_reset() also clears counters that trigger autovacuum and autoanalyze. doc/src/sgml/monitoring.sgml:6043-6048 warns that necessary maintenance can stop. It names bloat and stale statistics as consequences. It recommends database-wide ANALYZE afterward.", "verdict": "Dangerous", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/utils/activity/pgstat.c#L722-L724", "label": "REL_16_0 \u00b7 src/backend/utils/activity/pgstat.c:722-724"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/monitoring.sgml#L5896-L5896", "label": "REL_16_0 \u00b7 doc/src/sgml/monitoring.sgml:5896-5896"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/monitoring.sgml#L5919-L5920", "label": "REL_16_0 \u00b7 doc/src/sgml/monitoring.sgml:5919-5920"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/monitoring.sgml#L6043-L6048", "label": "REL_16_0 \u00b7 doc/src/sgml/monitoring.sgml:6043-6048"}, {"url": "https://www.postgresql.org/docs/16/monitoring-stats.html", "label": "https://www.postgresql.org/docs/16/monitoring-stats.html"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F3", "claim": "\u2026SELECT pg_stat_statements_reset;\u2026", "title": "The statement-statistics reset command omits parentheses", "explanation": "SELECT pg_stat_statements_reset; does not invoke the reset function. doc/src/sgml/pgstatstatements.sgml:873 shows SELECT pg_stat_statements_reset();. Copying the article's command fails instead of clearing statement statistics.", "verdict": "Misleading", "sources": [{"url": "https://www.postgresql.org/docs/current/pgstatstatements.html", "label": "https://www.postgresql.org/docs/current/pgstatstatements.html"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/pgstatstatements.sgml#L873-L873", "label": "REL_16_0 \u00b7 doc/src/sgml/pgstatstatements.sgml:873-873"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F7", "claim": "\u2026record all I/O activity\u2026", "title": "PostgreSQL 16 pg_stat_io does not record all I/O activity", "explanation": "PostgreSQL 16 pg_stat_io tracks relation I/O with documented exclusions. doc/src/sgml/monitoring.sgml:3717-3719 excludes relation operations that bypass shared buffers. It does not provide the complete WAL and query temporary-file accounting implied by all I/O activity.", "verdict": "Misleading", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/monitoring.sgml#L3717-L3719", "label": "REL_16_0 \u00b7 doc/src/sgml/monitoring.sgml:3717-3719"}, {"url": "https://www.postgresql.org/docs/16/monitoring-stats.html", "label": "https://www.postgresql.org/docs/16/monitoring-stats.html"}]}, {"anchor": "F20", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F20", "claim": "This won\u2019t help if your application is write-heavy\u2026", "title": "Additional RAM can help write-heavy workloads", "explanation": "More memory can retain repeatedly updated pages and reduce writes caused by dirty-buffer eviction. The cited Data Flow article explains this benefit. Rejecting RAM categorically can lead to unnecessary storage upgrades.", "verdict": "Misleading", "sources": [{"url": "https://www.crunchydata.com/blog/postgres-data-flow", "label": "https://www.crunchydata.com/blog/postgres-data-flow"}, {"url": "https://github.com/postgres/postgres/blob/df1448b336794a097614df1a9be7ae40a8221f8c/src/backend/storage/buffer/bufmgr.c#L2568-L2603", "label": "REL_19_STABLE@df1448b336 \u00b7 src/backend/storage/buffer/bufmgr.c:2568-2603"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F5", "claim": "\u2026including pg_stat_database, pg_stat_all_tables, pg_stat_user_tables.", "title": "The block-statistics paragraph names pg_stat views instead of pg_statio views", "explanation": "pg_statio_all_tables and pg_statio_user_tables expose relation block counts. src/backend/catalog/system_views.sql:728-742 defines those columns. pg_stat_all_tables and pg_stat_user_tables expose different table activity statistics. Following the prose sends the investigation to the wrong views.", "verdict": "Mostly accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/catalog/system_views.sql#L767-L769", "label": "REL_16_0 \u00b7 src/backend/catalog/system_views.sql:767-769"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/catalog/system_views.sql#L728-L742", "label": "REL_16_0 \u00b7 src/backend/catalog/system_views.sql:728-742"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F9", "claim": "\u2026blk_read_time + blk_write_time\u2026", "title": "The statement-ranking query uses timing columns renamed after PostgreSQL 16", "explanation": "PostgreSQL 16 pg_stat_statements 1.10 exposes blk_read_time and blk_write_time. Extension 1.11 separates shared and local timings. The pinned source defines these in contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql:41-46. The article's query fails against the newer definition.", "verdict": "Outdated", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/contrib/pg_stat_statements/pg_stat_statements--1.9--1.10.sql#L44-L45", "label": "REL_16_0 \u00b7 contrib/pg_stat_statements/pg_stat_statements--1.9--1.10.sql:44-45"}, {"url": "https://github.com/postgres/postgres/blob/df1448b336794a097614df1a9be7ae40a8221f8c/contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql#L41-L46", "label": "REL_19_STABLE@df1448b336 \u00b7 contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql:41-46"}]}, {"anchor": "F19", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F19", "claim": "\u2026(blk_read_time + blk_write_time)\u2026", "explanation": "The query worked with PostgreSQL 16's extension definition. Extension 1.11 separates shared and local timings. Updated extensions reject the old column names. Preserve the original aggregate by summing shared and local read/write timings, as defined in contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql:41-44.", "verdict": "Outdated", "sources": [{"url": "https://github.com/postgres/postgres/blob/df1448b336794a097614df1a9be7ae40a8221f8c/contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql#L41-L46", "label": "REL_19_STABLE@df1448b336 \u00b7 contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql:41-46"}, {"url": "https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/doc/src/sgml/release-17.sgml#L14340-L14361", "label": "REL_17_11 \u00b7 doc/src/sgml/release-17.sgml:14340-14361"}, {"url": "https://github.com/postgres/postgres/blob/df1448b336794a097614df1a9be7ae40a8221f8c/contrib/pg_stat_statements/pg_stat_statements--1.11--1.12.sql#L40-L49", "label": "REL_19_STABLE@df1448b336 \u00b7 contrib/pg_stat_statements/pg_stat_statements--1.11--1.12.sql:40-49"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F12", "claim": "\u2026collection is disabled by default\u2026", "title": "I/O timing defaults off and pg_test_timing measures its overhead", "explanation": "PostgreSQL 16 defaults track_io_timing to off. doc/src/sgml/config.sgml:8117-8121 explains clock-call overhead and recommends pg_test_timing. EXPLAIN BUFFERS reports elapsed I/O timings when the setting is enabled.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/config.sgml#L8117-L8130", "label": "REL_16_0 \u00b7 doc/src/sgml/config.sgml:8117-8130"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/ref/explain.sgml#L192-L199", "label": "REL_16_0 \u00b7 doc/src/sgml/ref/explain.sgml:192-199"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F13", "claim": "\u2026pg_stat_io will break down I/O usage into categories\u2026", "title": "PostgreSQL 16 pg_stat_io exposes backend, object, and context categories", "explanation": "src/backend/catalog/system_views.sql:1125-1145 defines the displayed PostgreSQL 16 columns. These include backend_type, object, context, operation counts, timings, and stats_reset. The documented contexts include normal, vacuum, bulkread, and bulkwrite.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/catalog/system_views.sql#L1125-L1145", "label": "REL_16_0 \u00b7 src/backend/catalog/system_views.sql:1125-1145"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/monitoring.sgml#L3783-L3853", "label": "REL_16_0 \u00b7 doc/src/sgml/monitoring.sgml:3783-3853"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F15", "claim": "\u2026Checkpoints: outstanding changes to relation files are written to disk\u2026", "title": "Checkpoints flush dirty buffers even when reads use cached data", "explanation": "CheckPointBuffers calls BufferSync to flush dirty buffers at checkpoint time. src/backend/storage/buffer/bufmgr.c:3267-3279 implements this operation. Keeping a working set in memory does not eliminate checkpoint writes.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/storage/buffer/bufmgr.c#L3267-L3279", "label": "REL_16_0 \u00b7 src/backend/storage/buffer/bufmgr.c:3267-3279"}]}, {"anchor": "F21", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F21", "claim": "\u2026Prior to PG 15, database statistics\u2026", "title": "PostgreSQL 15 changed cumulative-statistics reporting", "explanation": "PostgreSQL 15 moved cumulative statistics into shared memory. Earlier releases transferred statistics through the filesystem using a separate collector process.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/2ff1375b5dd8bf09d8cb0e795974528180fd75ca/doc/src/sgml/release-15.sgml#L23433-L23449", "label": "REL_15_19 \u00b7 doc/src/sgml/release-15.sgml:23433-23449"}]}, {"anchor": "F22", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F22", "claim": "\u2026Postgres 16, released just a few weeks ago as of this post\u2026", "title": "PostgreSQL 16 introduced pg_stat_io before the article appeared", "explanation": "PostgreSQL 16 shipped on September 14, 2023. Its release notes list the new pg_stat_io view. The article appeared 13 days later.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/doc/src/sgml/release-16.sgml#L18683-L18736", "label": "REL_16_15 \u00b7 doc/src/sgml/release-16.sgml:18683-18736"}]}, {"anchor": "F25", "url": "https://pgtrue.postgres.ai/shared/brief/dbdc609a-067b-416f-af45-e55ce23b42c1#F25", "claim": "\u2026Generation 1.166 ms, Inlining 0.000 ms, Optimization 0.669 ms, Emission 19.474 ms,\u2026", "title": "The JIT timing components sum correctly", "explanation": "The four JIT components total 21.309 ms (derived: 1.166 + 0.000 + 0.669 + 19.474 ms).", "verdict": "Accurate", "sources": []}]}