pgsql: Make unlink() work for junction points on Windows.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make unlink() work for junction points on Windows.
Date: 2024-11-07 23:19:39
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)dunslane(dot)net>
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
(cherry picked from commit f357233c9db8be2a015163da8e1ab0630f444340)

Author: Thomas Munro <tmunro(at)postgresql(dot)org>
Author: Alexandra Wang <alexandra(dot)wang(dot)oss(at)gmail(dot)com>

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b9d4a927d627bf5802e7e8e797ffc60d21bbac8b
Author: Thomas Munro <tmunro(at)postgresql(dot)org>

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

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2024-11-08 02:25:45 pgsql: Fix inconsistent RestrictInfo serial numbers
Previous Message Andrew Dunstan 2024-11-07 23:19:38 pgsql: Provide lstat() for Windows.