postgresql/contrib/pg_stat_statements
Fujii Masao 4a539a25eb Expose BufferUsageAccumDiff().
Previously pg_stat_statements calculated the difference of buffer counters
by its own code even while BufferUsageAccumDiff() had the same code.
This commit expose BufferUsageAccumDiff() and makes pg_stat_statements
use it for the calculation, in order to simply the code.

This change also would be useful for the upcoming patch for the planning
counters in pg_stat_statements because the patch will add one more code
for the calculation of difference of buffer counters and that can easily be
done by using BufferUsageAccumDiff().

Author: Julien Rouhaud
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/bdfee4e0-a304-2498-8da5-3cb52c0a193e@oss.nttdata.com
2020-03-30 12:15:26 +09:00
..
expected Teach pg_stat_statements not to ignore FOR UPDATE clauses 2019-07-14 12:07:40 +01:00
sql Teach pg_stat_statements not to ignore FOR UPDATE clauses 2019-07-14 12:07:40 +01:00
.gitignore
Makefile Remove support for upgrading extensions from "unpackaged" state. 2020-02-19 16:59:14 -05:00
pg_stat_statements--1.0--1.1.sql
pg_stat_statements--1.1--1.2.sql
pg_stat_statements--1.2--1.3.sql
pg_stat_statements--1.3--1.4.sql
pg_stat_statements--1.4--1.5.sql
pg_stat_statements--1.4.sql
pg_stat_statements--1.5--1.6.sql Revoke pg_stat_statements_reset() permissions 2018-09-25 09:55:44 +09:00
pg_stat_statements--1.6--1.7.sql Extend pg_stat_statements_reset to reset statistics specific to a 2019-01-11 08:50:09 +05:30
pg_stat_statements.c Expose BufferUsageAccumDiff(). 2020-03-30 12:15:26 +09:00
pg_stat_statements.conf
pg_stat_statements.control Extend pg_stat_statements_reset to reset statistics specific to a 2019-01-11 08:50:09 +05:30