diff options
author | Fujii Masao <fujii@postgresql.org> | 2020-03-30 12:15:26 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2020-03-30 12:15:26 +0900 |
commit | 4a539a25ebfc48329fd656a95f3c1eb2cda38af3 (patch) | |
tree | d4d503da2e6b3c1104961cb28ba0debef2f5b92a /src/backend/commands/explain.c | |
parent | b61d161c146328ae6ba9ed937862d66e5c8b035a (diff) | |
download | postgresql-4a539a25ebfc48329fd656a95f3c1eb2cda38af3.tar.gz postgresql-4a539a25ebfc48329fd656a95f3c1eb2cda38af3.zip |
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
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions