agora inbox for [email protected]  
help / color / mirror / Atom feed
From: Álvaro Herrera <[email protected]>
Subject: [PATCH 1/3] pg_dump tests: don't put dumps in stdout
Date: Tue, 25 Nov 2025 13:42:27 +0100

---
 src/bin/pg_dump/t/002_pg_dump.pl | 10 ++++++++--
 1 file 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..a05212719d9 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' => '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' => 'pgdumpall.dmp'
 	],
 	'pg_dumpall: option --exclude-database handles database names with embedded dots'
 );
-- 
2.47.3


--4zvagbkg7hhbwadg
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="0002-log_statement-off.patch"



view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [PATCH 1/3] pg_dump tests: don't put dumps in stdout
  In-Reply-To: <no-message-id-31384@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox