diff options
author | Jeff Davis <jdavis@postgresql.org> | 2022-04-07 09:14:49 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2022-04-07 09:14:49 -0700 |
commit | dad97e0502b4a5fc125c83e9092d9673f0e91805 (patch) | |
tree | 4ef51c761c3f11e5b32d46c422ec44aa46254a72 /src | |
parent | 957aa4d87a419d18710283cf4f53ba7d3ead6bbe (diff) | |
download | postgresql-dad97e0502b4a5fc125c83e9092d9673f0e91805.tar.gz postgresql-dad97e0502b4a5fc125c83e9092d9673f0e91805.zip |
Fix off-by-one error in pg_waldump, introduced in 5c279a6d350.
Per report by Bharath Rupireddy.
Discussion: https://postgr.es/m/CALj2ACX+PWDK2MYjdu8CB1ot7OUSo6kd5-fkkEgduEsTSZjAEw@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_waldump/pg_waldump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c index 7d92dcaf87b..30ca7684bd0 100644 --- a/src/bin/pg_waldump/pg_waldump.c +++ b/src/bin/pg_waldump/pg_waldump.c @@ -720,7 +720,7 @@ XLogDumpDisplayStats(XLogDumpConfig *config, XLogDumpStats *stats) * calculate column totals. */ - for (ri = 0; ri < RM_MAX_ID; ri++) + for (ri = 0; ri <= RM_MAX_ID; ri++) { total_count += stats->rmgr_stats[ri].count; total_rec_len += stats->rmgr_stats[ri].rec_len; |