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

Commit753f20c

Browse files
committed
Revert "Improve pg_basebackup long file name test Windows robustness"
Version 13 and older are missing the required infrastructure.
1 parent162c75d commit753f20c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,20 +200,16 @@
200200
'-T with invalid format fails');
201201

202202
# Tar format doesn't support filenames longer than 100 bytes.
203-
# Create the test file via a short name directory so it doesn't blow the
204-
# Windows path limit.
205-
my$lftmp = TestLib::tempdir_short;
206-
dir_symlink"$pgdata","$lftmp/pgdata";
207203
my$superlongname ="superlongname_" . ("x"x100);
208-
my$superlongpath ="$lftmp/pgdata/$superlongname";
204+
my$superlongpath ="$pgdata/$superlongname";
209205

210206
openmy$file,'>',"$superlongpath"
211207
ordie"unable to create file$superlongpath";
212208
close$file;
213209
$node->command_fails(
214210
['pg_basebackup','-D',"$tempdir/tarbackup_l1",'-Ft' ],
215211
'pg_basebackup tar with long name fails');
216-
unlink"$superlongpath";
212+
unlink"$pgdata/$superlongname";
217213

218214
# The following tests test symlinks. Windows doesn't have symlinks, so
219215
# skip on Windows.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp