Content-Length: 260524 | pFad | http://github.com/postgrespro/postgres/commit/dad97e0502b4a5fc125c83e9092d9673f0e91805

CA Fix off-by-one error in pg_waldump, introduced in 5c279a6d350. · postgrespro/postgres@dad97e0 · GitHub
Skip to content

Commit dad97e0

Browse files
committed
Fix off-by-one error in pg_waldump, introduced in 5c279a6.
Per report by Bharath Rupireddy. Discussion: https://postgr.es/m/CALj2ACX+PWDK2MYjdu8CB1ot7OUSo6kd5-fkkEgduEsTSZjAEw@mail.gmail.com
1 parent 957aa4d commit dad97e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_waldump/pg_waldump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ XLogDumpDisplayStats(XLogDumpConfig *config, XLogDumpStats *stats)
720720
* calculate column totals.
721721
*/
722722

723-
for (ri = 0; ri < RM_MAX_ID; ri++)
723+
for (ri = 0; ri <= RM_MAX_ID; ri++)
724724
{
725725
total_count += stats->rmgr_stats[ri].count;
726726
total_rec_len += stats->rmgr_stats[ri].rec_len;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/dad97e0502b4a5fc125c83e9092d9673f0e91805

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy