pgsql: Fix pg_basebackup long-path test on Windows

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix pg_basebackup long-path test on Windows
Date: 2026-10-26 14:20:57
Message-ID: E1xLLZJ-00000000qZY-3tYw@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix pg_basebackup long-path test on Windows

Create the long tablespace directory through the short side of the
Windows junction. Also check mkdir and report its underlying error
instead of failing later with a misleading misleading error for
CREATE TABLESPACE.

Author: Harrison Booth <harrisontbooth(at)gmail(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/CAAH-eSV4BJS7W=qRf7=Hk09XD3NhFOVvvKRjH+Lh0v9e_S=Seg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a757132e2fc8d443d557667b991e432c34cd0068

Modified Files
--------------
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Previous Message Peter Geoghegan 2026-10-26 13:52:22 pgsql: Fix nbtree multi-level page deletion WAL record bug.