Print WAL position correctly in pg_rewind error message.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: d8b094dabb0fa16388340ca823d0a38285d2d6ce
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2019-07-30T18:14:14Z
Releases: 13.0
Print WAL position correctly in pg_rewind error message.

This has been wrong ever since pg_rewind was added. The if-branch just
above this, where we print the same error with an extra message supplied
by XLogReadRecord() got this right, but the variable name was wrong in the
else-branch. As a consequence, the error printed the WAL position as
0/0 if there was an error reading a WAL file.

Backpatch to 9.5, where pg_rewind was added.

Files

PathChange+/−
src/bin/pg_rewind/parsexlog.c modified +1 −2