diff options
author | Amit Kapila <akapila@postgresql.org> | 2021-05-03 07:22:08 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2021-05-03 07:22:08 +0530 |
commit | 205f466282be11ec97506f73341e47b72e0aee5d (patch) | |
tree | 64f98a2c182758483d700306f6b1ca86751cdf35 /src/tutorial/funcs.c | |
parent | eb086056fec44516efdd5db71244a079fed65c7f (diff) | |
download | postgresql-205f466282be11ec97506f73341e47b72e0aee5d.tar.gz postgresql-205f466282be11ec97506f73341e47b72e0aee5d.zip |
Fix the computation of slot stats for 'total_bytes'.
Previously, we were using the size of all the changes present in
ReorderBuffer to compute total_bytes after decoding a transaction and that
can lead to counting some of the transactions' changes more than once. Fix
it by using the size of the changes decoded for a transaction to compute
'total_bytes'.
Author: Sawada Masahiko
Reviewed-by: Vignesh C, Amit Kapila
Discussion: https://postgr.es/m/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions