|
3601 | 3601 | $node->psql('postgres', 'create database regress_pg_dump_test;');
|
3602 | 3602 |
|
3603 | 3603 | # Start with number of command_fails_like()*2 tests below (each
|
3604 |
| -# command_fails_like is actually 2 tests) |
3605 |
| -my $num_tests = 42; |
| 3604 | +# command_fails_like is actually 2 tests) + number of command_ok()*3 |
| 3605 | +my $num_tests = 33; |
3606 | 3606 |
|
3607 | 3607 | foreach my $run (sort keys %pgdump_runs)
|
3608 | 3608 | {
|
|
3784 | 3784 | 'pg_dumpall: option --exclude-database rejects multipart pattern "."'
|
3785 | 3785 | );
|
3786 | 3786 |
|
3787 |
| -command_fails_like( |
3788 |
| - [ 'pg_dumpall', '-p', "$port", '--exclude-database', '.*' ], |
3789 |
| - qr/pg_dumpall: error: improper qualified name \(too many dotted names\): \.\*/, |
3790 |
| - 'pg_dumpall: option --exclude-database rejects multipart pattern ".*"' |
3791 |
| -); |
3792 |
| -
|
3793 |
| -command_fails_like( |
3794 |
| - [ 'pg_dumpall', '-p', "$port", '--exclude-database', '*.*' ], |
3795 |
| - qr/pg_dumpall: error: improper qualified name \(too many dotted names\): \*\.\*/, |
3796 |
| - 'pg_dumpall: option --exclude-database rejects multipart pattern "*.*"' |
3797 |
| -); |
3798 |
| -
|
3799 | 3787 | command_fails_like(
|
3800 | 3788 | [ 'pg_dumpall', '-p', "$port", '--exclude-database', 'myhost.mydb' ],
|
3801 | 3789 | qr/pg_dumpall: error: improper qualified name \(too many dotted names\): myhost\.mydb/,
|
|
3810 | 3798 | 'pg_dumpall: option --exclude-database handles database names with embedded dots'
|
3811 | 3799 | );
|
3812 | 3800 |
|
3813 |
| -$node->command_ok( |
3814 |
| - [ 'pg_dumpall', '-p', "$port", '--exclude-database', '??*' ], |
3815 |
| - 'pg_dumpall: option --exclude-database handles database name patterns' |
3816 |
| -); |
3817 |
| -
|
3818 |
| -
|
3819 | 3801 | #########################################
|
3820 | 3802 | # Test invalid multipart schema names
|
3821 | 3803 |
|
|
3843 | 3825 | 'pg_dump: option --schema rejects degenerate two-part schema name: "."'
|
3844 | 3826 | );
|
3845 | 3827 |
|
3846 |
| -command_fails_like( |
3847 |
| - [ 'pg_dump', '-p', "$port", '--schema', '.*' ], |
3848 |
| - qr/pg_dump: error: cross-database references are not implemented: \.\*/, |
3849 |
| - 'pg_dump: option --schema rejects degenerate two-part schema name: ".*"' |
3850 |
| -); |
3851 |
| -
|
3852 | 3828 | command_fails_like(
|
3853 | 3829 | [ 'pg_dump', '-p', "$port", '--schema', '..' ],
|
3854 | 3830 | qr/pg_dump: error: improper qualified name \(too many dotted names\): \.\./,
|
3855 | 3831 | 'pg_dump: option --schema rejects degenerate three-part schema name: ".."'
|
3856 | 3832 | );
|
3857 | 3833 |
|
3858 |
| -command_fails_like( |
3859 |
| - [ 'pg_dump', '-p', "$port", '--schema', '.*.*' ], |
3860 |
| - qr/pg_dump: error: improper qualified name \(too many dotted names\): \.\*\.\*/, |
3861 |
| - 'pg_dump: option --schema rejects degenerate three-part schema pattern: ".*.*"' |
3862 |
| -); |
3863 |
| -
|
3864 | 3834 | #########################################
|
3865 | 3835 | # Test invalid multipart relation names
|
3866 | 3836 |
|
|
0 commit comments