Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e859b3

Browse files
committed
Use shorter location for pg_replslot in pg_basebackup test
The symlink to a longer location tripped up some Windows limit onbuildfarm animal fairywren when running with meson, which uses slightlylonger paths.Backpatch to release 14 to keep the script in sync. Before that thescript skipped all symlink related tests on Windows.
1 parentd12d1a9 commit3e859b3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎src/bin/pg_basebackup/t/010_pg_basebackup.pl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -333,19 +333,20 @@
333333
# Enable group permissions on PGDATA
334334
chmod_recursive("$pgdata", 0750, 0640);
335335

336-
rename("$pgdata/pg_replslot","$tempdir/pg_replslot")
336+
# Create a temporary directory in the system location.
337+
my$sys_tempdir = PostgreSQL::Test::Utils::tempdir_short;
338+
339+
rename("$pgdata/pg_replslot","$sys_tempdir/pg_replslot")
337340
or BAIL_OUT"could not move$pgdata/pg_replslot";
338-
dir_symlink("$tempdir/pg_replslot","$pgdata/pg_replslot")
341+
dir_symlink("$sys_tempdir/pg_replslot","$pgdata/pg_replslot")
339342
or BAIL_OUT"could not symlink to$pgdata/pg_replslot";
340343

341344
$node->start;
342345

343346
# Test backup of a tablespace using tar format.
344-
# Create a temporary directory in the system location and symlink it
345-
# to our physical temp location. That way we can use shorter names
346-
# for the tablespace directories, which hopefully won't run afoul of
347-
# the 99 character length limit.
348-
my$sys_tempdir = PostgreSQL::Test::Utils::tempdir_short;
347+
# Symlink the system located tempdir to our physical temp location.
348+
# That way we can use shorter names for the tablespace directories,
349+
# which hopefully won't run afoul of the 99 character length limit.
349350
my$real_sys_tempdir ="$sys_tempdir/tempdir";
350351
dir_symlink"$tempdir",$real_sys_tempdir;
351352

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp