]> git.ipfire.org Git - thirdparty/postgresql.git/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:26:33 +0000 (13:26 -0400)
commitac2063ade566deb03e72e3da52cf472e125708b7
tree728ebcc8bcfed52dd6962b22c5076a0a88f82eb3
parent3080bbaa919143e19dbe65fd0d81a1b4457c845d
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