pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix pg_rewind when pg_xlog is a symlink.
Date: Mon, 03 Aug 2015 12:34:01 +0000
Message-ID: <E1ZMEwL-0007Ed-7o@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0e42397f42b370798461cbf3358185b520329f9f

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 |   79 ++++++++++++++++++++++++++++
6 files changed, 107 insertions(+), 5 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (6+ messages)  latest in thread

Message-ID: <E1ZMEwL-0007Ed-7o@gemulon.postgresql.org>
Permalink:  ../E1ZMEwL-0007Ed-7o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZMEwL-0007Ed-7o@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Fix pg_rewind when pg_xlog is a symlink.
  In-Reply-To: <E1ZMEwL-0007Ed-7o@gemulon.postgresql.org>
  References: <E1ZMEwL-0007Ed-7o@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox