diff options
| author | Álvaro Herrera <alvherre@kurilemu.de> | 2025-11-25 19:08:36 +0100 |
|---|---|---|
| committer | Álvaro Herrera <alvherre@kurilemu.de> | 2025-11-25 19:08:36 +0100 |
| commit | 33bb3dc2d855c0d4472372f0eb7877725af67a39 (patch) | |
| tree | bc1a6b8283739e3a896074a48d6faf1e563cacb8 | |
| parent | 417ac9c1eeebc5dd8186a9089055b8af43b2450e (diff) | |
pg_dump tests: don't put dumps in stdout
This bloats the regression log files for no reason.
Backpatch to 18; no further only because it fails to apply cleanly.
(It's just whitespace change that conflicts, but I don't think this
warrants more effort than this.)
Discussion: https://postgr.es/m/202511251218.zfs4nu2qnh2m@alvherre.pgsql
| -rw-r--r-- | src/bin/pg_dump/t/002_pg_dump.pl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.pl index 445a541abf6..e33aa95f6ff 100644 --- a/src/bin/pg_dump/t/002_pg_dump.pl +++ b/src/bin/pg_dump/t/002_pg_dump.pl @@ -5019,7 +5019,12 @@ $node->command_fails_like( # Test dumping pg_catalog (for research -- cannot be reloaded) $node->command_ok( - [ 'pg_dump', '--port' => $port, '--schema' => 'pg_catalog' ], + [ + 'pg_dump', + '--port' => $port, + '--schema' => 'pg_catalog', + '--file' => "$tempdir/pgdump_pgcatalog.dmp" + ], 'pg_dump: option -n pg_catalog'); ######################################### @@ -5029,7 +5034,8 @@ $node->command_ok( [ 'pg_dumpall', '--port' => $port, - '--exclude-database' => '"myhost.mydb"' + '--exclude-database' => '"myhost.mydb"', + '--file' => "$tempdir/pgdumpall.dmp" ], 'pg_dumpall: option --exclude-database handles database names with embedded dots' ); |
