Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> A pretty minor issue: when reporting that WAL appears invalid because
> contrecord length doesn't match, we may as well print to the server log
> the value that we're expecting. Patch attached.
+ (long long) (total_len - gotlen),
just to be sure about what's getting casted to what. Otherwise +1.
regards, tom lane