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:
parent
957aa4d87a
commit
dad97e0502
|
@ -720,7 +720,7 @@ XLogDumpDisplayStats(XLogDumpConfig *config, XLogDumpStats *stats)
|
||||||
* calculate column totals.
|
* 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_count += stats->rmgr_stats[ri].count;
|
||||||
total_rec_len += stats->rmgr_stats[ri].rec_len;
|
total_rec_len += stats->rmgr_stats[ri].rec_len;
|
||||||
|
|
Loading…
Reference in New Issue