|
339 | 339 | # Enable group permissions on PGDATA
|
340 | 340 | chmod_recursive("$pgdata", 0750, 0640);
|
341 | 341 |
|
342 |
| -rename("$pgdata/pg_replslot", "$tempdir/pg_replslot") |
| 342 | +# Create a temporary directory in the system location. |
| 343 | +my $sys_tempdir = PostgreSQL::Test::Utils::tempdir_short; |
| 344 | + |
| 345 | +rename("$pgdata/pg_replslot", "$sys_tempdir/pg_replslot") |
343 | 346 | or BAIL_OUT "could not move $pgdata/pg_replslot";
|
344 |
| -dir_symlink("$tempdir/pg_replslot", "$pgdata/pg_replslot") |
| 347 | +dir_symlink("$sys_tempdir/pg_replslot", "$pgdata/pg_replslot") |
345 | 348 | or BAIL_OUT "could not symlink to $pgdata/pg_replslot";
|
346 | 349 |
|
347 | 350 | $node->start;
|
348 | 351 |
|
349 | 352 | # Test backup of a tablespace using tar format.
|
350 |
| -# Create a temporary directory in the system location and symlink it |
351 |
| -# to our physical temp location. That way we can use shorter names |
352 |
| -# for the tablespace directories, which hopefully won't run afoul of |
353 |
| -# the 99 character length limit. |
354 |
| -my $sys_tempdir = PostgreSQL::Test::Utils::tempdir_short; |
| 353 | +# Symlink the system located tempdir to our physical temp location. |
| 354 | +# That way we can use shorter names for the tablespace directories, |
| 355 | +# which hopefully won't run afoul of the 99 character length limit. |
355 | 356 | my $real_sys_tempdir = "$sys_tempdir/tempdir";
|
356 | 357 | dir_symlink "$tempdir", $real_sys_tempdir;
|
357 | 358 |
|
|
0 commit comments