|
242 | 242 | qr/\Qpg_restore: error: option --exclude-database cannot be used together with -g\/--globals-only\E/, |
243 | 243 | 'pg_restore: option --exclude-database cannot be used together with -g/--globals-only'); |
244 | 244 |
|
| 245 | +command_fails_like( |
| 246 | +['pg_restore','--exclude-database=foo','-d','xxx','dumpdir' ], |
| 247 | +qr/\Qpg_restore: error: option --exclude-database can be used only when restoring multiple databases by archive of pg_dumpall\E/, |
| 248 | +'When option --exclude-database is used in pg_restore with dump of pg_dump'); |
| 249 | + |
| 250 | +command_fails_like( |
| 251 | +['pg_restore','--globals-only','-d','xxx','dumpdir' ], |
| 252 | +qr/\Qpg_restore: error: option -g\/--globals-only can be used only when restoring multiple databases by archive of pg_dumpall\E/, |
| 253 | +'When option --globals-only is not used in pg_restore with dump of pg_dump'); |
| 254 | + |
245 | 255 | # also fails for -r and -t, but it seems pointless to add more tests for those. |
246 | 256 | command_fails_like( |
247 | 257 | ['pg_dumpall','--exclude-database=foo','--globals-only' ], |
|