pgsql: Fix tablespace creation WAL replay to work on Windows.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix tablespace creation WAL replay to work on Windows.
Date: 2014-04-05 03:10:26
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix tablespace creation WAL replay to work on Windows.

The code segment that removes the old symlink (if present) wasn't clued
into the fact that on Windows, symlinks are junction points which have
to be removed with rmdir().

Backpatch to 9.0, where the failing code was introduced.

MauMau, reviewed by Muhammad Asif Naeem and Amit Kapila

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/84520f91ccec4d204ffae92af039544eb3541c39

Modified Files
--------------
src/backend/commands/tablespace.c | 33 +++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-04-05 06:20:42 pgsql: ecpg/ecpglib must build the src/port files it uses with -DFRONTE
Previous Message Tom Lane 2014-04-05 02:03:58 pgsql: Allow "-C variable" and "--describe-config" even to root users.