Re: pgsql: Fix pg_rewind when pg_xlog is a symlink.

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fix pg_rewind when pg_xlog is a symlink.
Date: 2015-08-03 12:54:23
Message-ID: CAB7nPqTrhb=Sg=87v2shW=2ijCEZAqBa-n5je8yRdcwf9iNB1Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Mon, Aug 3, 2015 at 9:34 PM, Heikki Linnakangas
<heikki(dot)linnakangas(at)iki(dot)fi> wrote:
> 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.

+ symlink($master_xlogdir, "$test_master_datadir/pg_xlog") or die;

This will die on Windows, hence I think that this test should be
skipped in this case.
--
Michael

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-08-03 13:37:55 Re: pgsql: Fix pg_rewind when pg_xlog is a symlink.
Previous Message Heikki Linnakangas 2015-08-03 12:34:01 pgsql: Clean up pg_rewind regression test script.