pg_amcheck_strict_names.diff

application/octet-stream

Filename: pg_amcheck_strict_names.diff
Type: application/octet-stream
Part: 0
Message: Re: BUG #17148: About --no-strict-names option and --quiet option of pg_amcheck command

Patch

Format: unified
File+
src/bin/pg_amcheck/pg_amcheck.c 3 2
diff --git a/src/bin/pg_amcheck/pg_amcheck.c b/src/bin/pg_amcheck/pg_amcheck.c
index bcb02db495..a092e7d8a9 100644
--- a/src/bin/pg_amcheck/pg_amcheck.c
+++ b/src/bin/pg_amcheck/pg_amcheck.c
@@ -1672,8 +1672,9 @@ compile_database_list(PGconn *conn, SimplePtrList *databases,
 							 pattern_id);
 				exit(1);
 			}
-			log_no_match("no connectable databases to check matching \"%s\"",
-						 opts.include.data[pattern_id].pattern);
+			if (!opts.quiet || fatal)
+				log_no_match("no connectable databases to check matching \"%s\"",
+							 opts.include.data[pattern_id].pattern);
 		}
 		else
 		{