forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4a539a2
committed
Expose BufferUsageAccumDiff().
Previously pg_stat_statements calculated the difference of buffer countersby its own code even while BufferUsageAccumDiff() had the same code.This commit expose BufferUsageAccumDiff() and makes pg_stat_statementsuse it for the calculation, in order to simply the code.This change also would be useful for the upcoming patch for the planningcounters in pg_stat_statements because the patch will add one more codefor the calculation of difference of buffer counters and that can easily bedone by using BufferUsageAccumDiff().Author: Julien RouhaudReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/bdfee4e0-a304-2498-8da5-3cb52c0a193e@oss.nttdata.com1 parentb61d161 commit4a539a2
File tree
3 files changed
+5
-27
lines changed- contrib/pg_stat_statements
- src
- backend/executor
- include/executor
3 files changed
+5
-27
lines changedLines changed: 2 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1016 | 1016 |
| |
1017 | 1017 |
| |
1018 | 1018 |
| |
1019 |
| - | |
1020 |
| - | |
1021 |
| - | |
1022 |
| - | |
1023 |
| - | |
1024 |
| - | |
1025 |
| - | |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
1030 |
| - | |
1031 |
| - | |
1032 |
| - | |
1033 |
| - | |
1034 |
| - | |
1035 |
| - | |
1036 |
| - | |
1037 |
| - | |
1038 |
| - | |
1039 |
| - | |
1040 |
| - | |
1041 |
| - | |
1042 |
| - | |
| 1019 | + | |
| 1020 | + | |
1043 | 1021 |
| |
1044 | 1022 |
| |
1045 | 1023 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
26 | 24 |
| |
27 | 25 |
| |
28 | 26 |
| |
| |||
203 | 201 |
| |
204 | 202 |
| |
205 | 203 |
| |
206 |
| - | |
| 204 | + | |
207 | 205 |
| |
208 | 206 |
| |
209 | 207 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
| 84 | + | |
| 85 | + | |
84 | 86 |
| |
85 | 87 |
|
0 commit comments
Comments
(0)