Fix pg_rewind when pg_xlog is a symlink.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix pg_rewind when pg_xlog is a symlink. pg_xlog is often a symlink, typically to a different filesystem. Don't get confused and comlain about by that, and just always pretend that it's a normal directory, even if it's really a symlink. Also add a test case for this. Backpatch to 9.5.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_rewind/filemap.c | modified | +15 −1 |
| src/bin/pg_rewind/RewindTest.pm | modified | +10 −4 |
| src/bin/pg_rewind/t/001_basic.pl | modified | +1 −0 |
| src/bin/pg_rewind/t/002_databases.pl | modified | +1 −0 |
| src/bin/pg_rewind/t/003_extrafiles.pl | modified | +1 −0 |
| src/bin/pg_rewind/t/004_pg_xlog_symlink.pl | added | +79 −0 |