Fix tablespace creation WAL replay to work on Windows.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 84520f91ccec4d204ffae92af039544eb3541c39
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-04-05T03:09:38Z
Releases: 9.3.5
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

Files

PathChange+/−
src/backend/commands/tablespace.c modified +25 −8