postgresql/src
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
..
backend Expose BufferUsageAccumDiff(). 2020-03-30 12:15:26 +09:00
bin Enable Unix-domain sockets support on Windows 2020-03-28 15:01:01 +01:00
common Add support for other normal forms to Unicode normalization API 2020-03-24 10:02:46 +01:00
fe_utils Fix bug in pg_basebackup -F plain -R. 2020-02-12 09:08:22 +09:00
include Expose BufferUsageAccumDiff(). 2020-03-30 12:15:26 +09:00
interfaces Fix issues around .pgpass file. 2020-03-05 13:00:38 +09:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Rearrange validity checks for plpgsql "simple" expressions. 2020-03-27 14:47:34 -04:00
port Fix our getopt_long's behavior for a command line argument of just "-". 2020-03-23 11:58:00 -04:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test pg_regress: Observe TMPDIR 2020-03-29 09:25:40 +02:00
timezone Require stdint.h 2020-02-21 09:20:32 +01:00
tools Introduce vacuum errcontext to display additional information. 2020-03-30 07:33:38 +05:30
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00