mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
pg_dump new test: Change order of arguments
Some getopt_long implementations don't like to have a non-option argument before option arguments, so put the database name as the last switch. Per buildfarm member hoverfly.
This commit is contained in:
parent
2f9eb31320
commit
ffd398021c
@ -27,10 +27,10 @@ $node->safe_psql( 'postgres', "CREATE FOREIGN TABLE t1 (a int) SERVER s1");
|
||||
my ($cmd, $stdout, $stderr, $result);
|
||||
|
||||
command_fails_like(
|
||||
[ "pg_dump", '-p', $port, 'postgres', '--include-foreign-data=s0' ],
|
||||
[ "pg_dump", '-p', $port, '--include-foreign-data=s0', 'postgres' ],
|
||||
qr/foreign-data wrapper \"dummy\" has no handler\r?\npg_dump: error: query was:.*t0/,
|
||||
"correctly fails to dump a foreign table from a dummy FDW");
|
||||
|
||||
command_ok(
|
||||
[ "pg_dump", '-p', $port, 'postgres', '-a', '--include-foreign-data=s2' ] ,
|
||||
[ "pg_dump", '-p', $port, '-a', '--include-foreign-data=s2', 'postgres' ] ,
|
||||
"dump foreign server with no tables");
|
||||
|
Loading…
Reference in New Issue
Block a user