pgsql: Fix tablespace creation WAL replay to work on Windows. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix tablespace creation WAL replay to work on Windows.
Date
Msg-id E1WWGzy-0004vv-DI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/abe075dfffe2ef7e76ebbf5717fa3823f9a70a1f

Modified Files
--------------
src/backend/commands/tablespace.c |   33 +++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix tablespace creation WAL replay to work on Windows.
Next
From: Tom Lane
Date:
Subject: pgsql: ecpg/ecpglib must build the src/port files it uses with -DFRONTE