]> granicus.if.org Git - postgresql/commit
Print WAL position correctly in pg_rewind error message.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2019 18:14:14 +0000 (21:14 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2019 18:14:41 +0000 (21:14 +0300)
commita6380f8a4b424cf097a066b45b91fa43d367c562
tree8819d2c4a9da8ef11a07c274ea200f3e704c769d
parent4dbf70b2ff1ee487923394fd9e4fb28bb78839f2
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.
src/bin/pg_rewind/parsexlog.c