]> granicus.if.org Git - postgresql/commit
Count buffers dirtied due to hints in pgBufferUsage.shared_blks_dirtied.
authorRobert Haas <rhaas@postgresql.org>
Mon, 31 Mar 2014 17:06:26 +0000 (13:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 31 Mar 2014 17:06:26 +0000 (13:06 -0400)
commit066254cea117a5a40d21401f754c83cc163378ae
tree6ee0b31dad79d0373914657e37f8cd42711255c5
parent3f0e4be453ffd27b5f5e6c115172091abda3a38f
Count buffers dirtied due to hints in pgBufferUsage.shared_blks_dirtied.

Previously, such buffers weren't counted, with the possible result that
EXPLAIN (BUFFERS) and pg_stat_statements would understate the true
number of blocks dirtied by an SQL statement.

Back-patch to 9.2, where this counter was introduced.

Amit Kapila
src/backend/storage/buffer/bufmgr.c