]> granicus.if.org Git - postgresql/commit
Adjust error message for partial writes in WAL segments
authorMichael Paquier <michael@paquier.xyz>
Mon, 11 Mar 2019 00:31:25 +0000 (09:31 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 11 Mar 2019 00:31:25 +0000 (09:31 +0900)
commitf2d84a4a6b4ec891a0a52f583ed5aa081c71acc6
tree10650b24f8fa06c35adeb16b9bfb6afecff23d42
parentfc84c05acd151cb1141c47d4af0c5ca803a4c3b4
Adjust error message for partial writes in WAL segments

93473c6 has removed openLogOff, changing on the way the error message
which is used to report partial writes to WAL segments.  The
newly-introduced error message used the offset up to which the write has
happened, keeping always the same total length to write.  This changes
the error message so as the number of bytes left to write are reported.

Reported-by: Michael Paquier
Author: Robert Haas
Discussion: https://postgr.es/m/20190306235251.GA17293@paquier.xyz
src/backend/access/transam/xlog.c