summaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-02-22 20:33:05 -0500
committerRobert Haas <rhaas@postgresql.org>2012-02-22 20:33:05 -0500
commit2254367435fcc4a31cc3b6d8324e33c5c30f265a (patch)
tree484dc972b60dd19f03cf15c30869a1566c576848 /src/include/executor
parentf74f9a277c37b42c570ce01019f815abbec58ba0 (diff)
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.
Diffstat (limited to 'src/include/executor')
-rw-r--r--src/include/executor/instrument.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/executor/instrument.h b/src/include/executor/instrument.h
index 084302e4e7e..066f684f330 100644
--- a/src/include/executor/instrument.h
+++ b/src/include/executor/instrument.h
@@ -20,9 +20,11 @@ typedef struct BufferUsage
{
long shared_blks_hit; /* # of shared buffer hits */
long shared_blks_read; /* # of shared disk blocks read */
+ long shared_blks_dirtied; /* # of shared blocks dirtied */
long shared_blks_written; /* # of shared disk blocks written */
long local_blks_hit; /* # of local buffer hits */
long local_blks_read; /* # of local disk blocks read */
+ long local_blks_dirtied; /* # of shared blocks dirtied */
long local_blks_written; /* # of local disk blocks written */
long temp_blks_read; /* # of temp blocks read */
long temp_blks_written; /* # of temp blocks written */