mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Fix off-by-one error in pg_waldump, introduced in 5c279a6d35
.
Per report by Bharath Rupireddy. Discussion: https://postgr.es/m/CALj2ACX+PWDK2MYjdu8CB1ot7OUSo6kd5-fkkEgduEsTSZjAEw@mail.gmail.com
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user