Apply some fat commas to commands of TAP tests
authorMichael Paquier <[email protected]>
Thu, 21 Aug 2025 05:17:26 +0000 (14:17 +0900)
committerMichael Paquier <[email protected]>
Thu, 21 Aug 2025 05:17:26 +0000 (14:17 +0900)
This is similar to 19c6e92b13b2, in order to keep the style used in the
scripts consistent for the option names and values used in commands.
The places updated in this commit have been added recently in
71ea0d679543.

These changes are cosmetic; there is no need for a backpatch.

src/bin/pg_combinebackup/t/002_compare_backups.pl
src/bin/pg_upgrade/t/002_pg_upgrade.pl
src/test/recovery/t/027_stream_regress.pl

index 9c7fe56cb7c72bc833ba8f207556d9c96dfa49d6..a3e29c055091e2a8d44117456bcd2f77df0ffb21 100644 (file)
@@ -174,7 +174,7 @@ my $dump2 = $backupdir . '/pitr2.dump';
 $pitr1->command_ok(
    [
        'pg_dumpall',
-       '--restrict-key=test',
+       '--restrict-key' => 'test',
        '--no-sync',
        '--no-unlogged-table-data',
        '--file' => $dump1,
@@ -184,7 +184,7 @@ $pitr1->command_ok(
 $pitr2->command_ok(
    [
        'pg_dumpall',
-       '--restrict-key=test',
+       '--restrict-key' => 'test',
        '--no-sync',
        '--no-unlogged-table-data',
        '--file' => $dump2,
index 4b5e895809b409958f04c15859b532eeb853ae48..823f41e754ced43859ccffddc62bf1d6fb77902a 100644 (file)
@@ -86,7 +86,7 @@ sub get_dump_for_comparison
    $node->run_log(
        [
            'pg_dump', '--no-sync',
-           '--restrict-key=test',
+           '--restrict-key' => 'test',
            '-d' => $node->connstr($db),
            '-f' => $dumpfile
        ]);
@@ -428,7 +428,7 @@ SKIP:
 # that we need to use pg_dumpall from the new node here.
 my @dump_command = (
    'pg_dumpall', '--no-sync',
-   '--restrict-key=test',
+   '--restrict-key' => 'test',
    '--dbname' => $oldnode->connstr('postgres'),
    '--file' => $dump1_file);
 # --extra-float-digits is needed when upgrading from a version older than 11.
@@ -626,7 +626,7 @@ is( $result,
 # Second dump from the upgraded instance.
 @dump_command = (
    'pg_dumpall', '--no-sync',
-   '--restrict-key=test',
+   '--restrict-key' => 'test',
    '--dbname' => $newnode->connstr('postgres'),
    '--file' => $dump2_file);
 # --extra-float-digits is needed when upgrading from a version older than 11.
index 12d8852fb4b3db0989e99a3ec2ad6a1c00e6ee6b..589c79d97d3a93e683170435621f52e0456f8afb 100644 (file)
@@ -117,7 +117,7 @@ command_ok(
        'pg_dumpall',
        '--file' => $outputdir . '/primary.dump',
        '--no-sync', '--no-statistics',
-       '--restrict-key=test',
+       '--restrict-key' => 'test',
        '--port' => $node_primary->port,
        '--no-unlogged-table-data',    # if unlogged, standby has schema only
    ],
@@ -127,7 +127,7 @@ command_ok(
        'pg_dumpall',
        '--file' => $outputdir . '/standby.dump',
        '--no-sync', '--no-statistics',
-       '--restrict-key=test',
+       '--restrict-key' => 'test',
        '--port' => $node_standby_1->port,
    ],
    'dump standby server');
@@ -147,7 +147,7 @@ command_ok(
        '--schema' => 'pg_catalog',
        '--file' => $outputdir . '/catalogs_primary.dump',
        '--no-sync',
-       '--restrict-key=test',
+       '--restrict-key' => 'test',
        '--port', $node_primary->port,
        '--no-unlogged-table-data',
        'regression',
@@ -159,7 +159,7 @@ command_ok(
        '--schema' => 'pg_catalog',
        '--file' => $outputdir . '/catalogs_standby.dump',
        '--no-sync',
-       '--restrict-key=test',
+       '--restrict-key' => 'test',
        '--port' => $node_standby_1->port,
        'regression',
    ],