pgsql: Fix pg_rewind when pg_xlog is a symlink.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pg_rewind when pg_xlog is a symlink.
Date: 2015-08-03 12:34:01
Message-ID: E1ZMEwL-0007Eh-7y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/615b69595525385bbf050a170912b7671cacc5c8

Modified Files
--------------
src/bin/pg_rewind/RewindTest.pm | 14 ++++--
src/bin/pg_rewind/filemap.c | 16 ++++++-
src/bin/pg_rewind/t/001_basic.pl | 1 +
src/bin/pg_rewind/t/002_databases.pl | 1 +
src/bin/pg_rewind/t/003_extrafiles.pl | 1 +
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl | 70 ++++++++++++++++++++++++++++
6 files changed, 98 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2015-08-03 12:54:23 Re: pgsql: Fix pg_rewind when pg_xlog is a symlink.
Previous Message Amit Kapila 2015-08-03 11:55:42 Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file