8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f160bf0 commit 5ba8b70Copy full SHA for 5ba8b70
src/bin/pg_upgrade/t/002_pg_upgrade.pl
@@ -246,15 +246,19 @@ sub filter_dump
246
247
foreach my $updb (keys %$adjust_cmds)
248
{
249
- my $upcmds = join(";\n", @{ $adjust_cmds->{$updb} });
+ my @command_args = ();
250
+ for my $upcmd (@{ $adjust_cmds->{$updb} })
251
+ {
252
+ push @command_args, '-c', $upcmd;
253
+ }
254
255
# For simplicity, use the newer version's psql to issue the commands.
256
$newnode->command_ok(
257
[
258
'psql', '-X',
259
'-v', 'ON_ERROR_STOP=1',
- '-c', $upcmds,
260
'-d', $oldnode->connstr($updb),
261
+ @command_args,
262
],
263
"ran version adaptation commands for database $updb");
264
}
0 commit comments