]> 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:45 +0000 (23:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 03:09:45 +0000 (23:09 -0400)
commitaf7738fe6a33523916a58ac7b276f9467566a439
tree81cebbd6b922818b4e73953c0d4ca527841623e6
parent895243d69ba1972157d8d2644efbf87d557abec3
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