Skip to content

Commit 5c1d80e

Browse files
committed
Use a short socket directory path in pg_upgrade testing.
Several buildfarm members are failing the pg_upgrade test in REL_15_STABLE, though the identical test is fine in HEAD. On thorntail it's possible to see that the problem is an overlength socket path name, and I bet the same is true on the others. The normally-started postmasters used in the test are already set up with short socket directory paths, but we neglected to tell pg_upgrade itself to do likewise when starting child postmasters, and indeed it seems to be explicitly selecting the test directory instead. Back-patch to v15 where the current test script was introduced. (The previous script might have the same issue, because I don't see any use of -s/--socketdir in it either; but we've had no complaints, so leave it alone for now.) Discussion: https://postgr.es/m/1410025.1656890531@sss.pgh.pa.us
1 parent 7d9bf58 commit 5c1d80e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/bin/pg_upgrade/t/002_pg_upgrade.pl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ sub generate_db
226226
'-D', $newnode->data_dir,
227227
'-b', $oldbindir . '/does/not/exist/',
228228
'-B', $newbindir,
229+
'-s', $newnode->host,
229230
'-p', $oldnode->port,
230231
'-P', $newnode->port,
231232
'--check'
@@ -240,8 +241,9 @@ sub generate_db
240241
[
241242
'pg_upgrade', '--no-sync', '-d', $oldnode->data_dir,
242243
'-D', $newnode->data_dir, '-b', $oldbindir,
243-
'-B', $newbindir, '-p', $oldnode->port,
244-
'-P', $newnode->port, '--check'
244+
'-B', $newbindir, '-s', $newnode->host,
245+
'-p', $oldnode->port, '-P', $newnode->port,
246+
'--check'
245247
],
246248
'run of pg_upgrade --check for new instance');
247249
ok(!-d $newnode->data_dir . "/pg_upgrade_output.d",
@@ -252,8 +254,8 @@ sub generate_db
252254
[
253255
'pg_upgrade', '--no-sync', '-d', $oldnode->data_dir,
254256
'-D', $newnode->data_dir, '-b', $oldbindir,
255-
'-B', $newbindir, '-p', $oldnode->port,
256-
'-P', $newnode->port
257+
'-B', $newbindir, '-s', $newnode->host,
258+
'-p', $oldnode->port, '-P', $newnode->port
257259
],
258260
'run of pg_upgrade for new instance');
259261
ok( !-d $newnode->data_dir . "/pg_upgrade_output.d",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy