Count buffers dirtied due to hints in pgBufferUsage.shared_blks_dirtied.

Robert Haas <rhaas@postgresql.org>

Commit: 066254cea117a5a40d21401f754c83cc163378ae
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-03-31T17:06:26Z
Releases: 9.4.0
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

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +1 −0