Fix the computation of slot stats for 'total_bytes'.
Amit Kapila <akapila@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/reorderbuffer.c | modified | +19 −20 |
Discussion
- Replication slot stats misgivings 201 messages · 2021-03-19 → 2021-05-25