Make EXPLAIN (BUFFERS) track blocks dirtied, as well as those written.
Robert Haas <rhaas@postgresql.org>
Make EXPLAIN (BUFFERS) track blocks dirtied, as well as those written. Also expose the new counters through pg_stat_statements. Patch by me. Review by Fujii Masao and Greg Smith.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_stat_statements/Makefile | modified | +2 −1 |
| contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql | added | +40 −0 |
| contrib/pg_stat_statements/pg_stat_statements--1.1.sql | added | +41 −0 |
| contrib/pg_stat_statements/pg_stat_statements.c | modified | +19 −2 |
| contrib/pg_stat_statements/pg_stat_statements.control | modified | +1 −1 |
| doc/src/sgml/pgstatstatements.sgml | modified | +14 −0 |
| doc/src/sgml/ref/explain.sgml | modified | +9 −3 |
| src/backend/commands/explain.c | modified | +13 −3 |
| src/backend/executor/instrument.c | modified | +2 −0 |
| src/backend/storage/buffer/bufmgr.c | modified | +1 −0 |
| src/backend/storage/buffer/localbuf.c | modified | +4 −0 |
| src/include/executor/instrument.h | modified | +2 −0 |