]> 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:29:54 +0000 (13:29 -0400)
commit6a63dda4c2a0bf06b8da28d15baae1a08e2e8fd5
tree6a9161f9fdb7f29bd8c682dda79f711b2d9e20e6
parent8c1797e59be95b967e6b00b5a70445cfd0d27653
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