]> granicus.if.org Git - postgresql/commit
Fix tablespace creation WAL replay to work on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 03:09:38 +0000 (23:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 03:09:38 +0000 (23:09 -0400)
commit84520f91ccec4d204ffae92af039544eb3541c39
treeaae80bb0a12b74b42820a09c7ea879a779b706c9
parent7d1a0f585c233e0e316d99667f97f7af80069837
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
src/backend/commands/tablespace.c