Remove some recently-added pg_dump test cases.
authorRobert Haas <rhaas@postgresql.org>
Fri, 22 Apr 2022 20:16:52 +0000 (16:16 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 22 Apr 2022 20:19:39 +0000 (16:19 -0400)
Commit d2d35479796c3510e249d6fc72adbd5df918efbf included a pretty
extensive set of test cases, and some of them don't work on all
of our Windows machines. This happens because IPC::Run expands
its arguments as shell globs on a few machines, but doesn't on most
of the buildfarm. It might be good to fix that problem systematically
somehow, but in the meantime, there are enough test cases for this
commit that it seems OK to just remove the ones that are failing.

Discussion: http://postgr.es/m/3a190754-b2b0-d02b-dcfd-4ec1610ffbcb@dunslane.net
Discussion: http://postgr.es/m/CA+TgmoYRGUcFBy6VgN0+Pn4f6Wv=2H0HZLuPHqSy6VC8Ba7vdg@mail.gmail.com

src/bin/pg_dump/t/002_pg_dump.pl

index 1ecfd7ae23512091d369ac35c7833b05796eba11..3b31e13f62be5a335d1b217062215bd69f79e08e 100644 (file)
@@ -3982,18 +3982,6 @@ $node->command_fails_like(
        'pg_dumpall: option --exclude-database rejects multipart pattern "."'
 );
 
-$node->command_fails_like(
-       [ 'pg_dumpall', '--exclude-database', '.*' ],
-       qr/pg_dumpall: error: improper qualified name \(too many dotted names\): \.\*/,
-       'pg_dumpall: option --exclude-database rejects multipart pattern ".*"'
-);
-
-$node->command_fails_like(
-       [ 'pg_dumpall', '--exclude-database', '*.*' ],
-       qr/pg_dumpall: error: improper qualified name \(too many dotted names\): \*\.\*/,
-       'pg_dumpall: option --exclude-database rejects multipart pattern "*.*"'
-);
-
 $node->command_fails_like(
        [ 'pg_dumpall', '--exclude-database', 'myhost.mydb' ],
        qr/pg_dumpall: error: improper qualified name \(too many dotted names\): myhost\.mydb/,
@@ -4008,12 +3996,6 @@ $node->command_ok(
        'pg_dumpall: option --exclude-database handles database names with embedded dots'
 );
 
-$node->command_ok(
-       [ 'pg_dumpall', '--exclude-database', '??*' ],
-       'pg_dumpall: option --exclude-database handles database name patterns'
-);
-
-
 #########################################
 # Test invalid multipart schema names
 
@@ -4041,24 +4023,12 @@ $node->command_fails_like(
        'pg_dump: option --schema rejects cross-database multipart schema names with embedded dots'
 );
 
-$node->command_fails_like(
-       [ 'pg_dump', '--schema', '.*' ],
-       qr/pg_dump: error: cross-database references are not implemented: \.\*/,
-       'pg_dump: option --schema rejects degenerate two-part schema name: ".*"'
-);
-
 $node->command_fails_like(
        [ 'pg_dump', '--schema', '..' ],
        qr/pg_dump: error: improper qualified name \(too many dotted names\): \.\./,
        'pg_dump: option --schema rejects degenerate three-part schema name: ".."'
 );
 
-$node->command_fails_like(
-       [ 'pg_dump', '--schema', '.*.*' ],
-       qr/pg_dump: error: improper qualified name \(too many dotted names\): \.\*\.\*/,
-       'pg_dump: option --schema rejects degenerate three-part schema pattern: ".*.*"'
-);
-
 #########################################
 # Test invalid multipart relation names