I have checked out the pg_rewind code from https://github.com/vmware/pg_rewind.git on the master branch and am using PostgreSQL 9.4.1 source code to build against. When I try to compile pg_rewind, I am getting the following errors. How can I resolve these problems?
It looks like master of pg_rewind expects to be built against Postgres 9.5. Try checking out the REL9_4_STABLE branch.
This branching model makes management of the code easier because WAL-related APIs and WAL format can change a lot between major releases (and also because in this case it would have made the code less readable using blocks based on PG_VERSION_NUM for not that much result).