]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix tablespace creation WAL replay to work on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 03:09:49 +0000 (23:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 03:09:49 +0000 (23:09 -0400)
commit634056567aa7db0b183e9bbb072679bb958c426e
tree1d3a9ef69c4950b9f1ea28100e57e932956c2783
parentaf7004ed6c0e5b052daee1760bf12179d40166d8
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