pgsql: Make unlink() work for junction points on Windows. - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Make unlink() work for junction points on Windows.
Date
Msg-id E1t9Bms-000hQg-R7@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make unlink() work for junction points on Windows.

To support harmonization of Windows and Unix code, teach our unlink()
wrapper that junction points need to be unlinked with rmdir() on
Windows.

Tested-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
(cherry picked from commit f357233c9db8be2a015163da8e1ab0630f444340)

Author: Thomas Munro <tmunro@postgresql.org>
Author: Alexandra Wang <alexandra.wang.oss@gmail.com>

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fa56aa23fad3c27f4553025206afa8ba2500347f
Author: Thomas Munro <tmunro@postgresql.org>

Modified Files
--------------
src/port/dirmod.c | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Provide lstat() for Windows.
Next
From: Richard Guo
Date:
Subject: pgsql: Fix inconsistent RestrictInfo serial numbers