Alvaro Herrera <alvhe...@2ndquadrant.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.
ITYW + (long long) (total_len - gotlen), just to be sure about what's getting casted to what. Otherwise +1. regards, tom lane