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