From 6a141ffe66e77e61da3e4b36ebe21af04c25e3de Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Wed, 2 Dec 2026 16:58:05 -0600 Subject: [PATCH v1 1/1] Make use of check_mut_excl_opts() in more places. This commit makes use of check_mut_excl_opts() for the handling of conflicting options in initdb, pg_basebackup, pg_createsubscriber, pg_receivewal, pg_recvlogical, pg_rewind, pg_verifybackup, pgbench, and vacuumdb. It doesn't fix any bugs, but it does trim several lines of code, and it makes the error messages for these conflicting options match the one used by pg_dump and friends. Note that some of these programs previously printed a "Try --help" hint after reporting conflicting options, but check_mut_excl_opts() does not, so the hint is no longer printed in these cases. --- src/bin/initdb/initdb.c | 4 +- src/bin/pg_basebackup/pg_basebackup.c | 71 ++++----------- src/bin/pg_basebackup/pg_createsubscriber.c | 30 ++----- src/bin/pg_basebackup/pg_receivewal.c | 16 +--- src/bin/pg_basebackup/pg_recvlogical.c | 20 ++--- src/bin/pg_basebackup/t/010_pg_basebackup.pl | 8 +- .../t/040_pg_createsubscriber.pl | 2 +- src/bin/pg_rewind/pg_rewind.c | 8 +- src/bin/pg_verifybackup/pg_verifybackup.c | 6 +- src/bin/pg_verifybackup/t/004_options.pl | 2 +- src/bin/pgbench/pgbench.c | 8 +- src/bin/pgbench/t/002_pgbench_no_server.pl | 6 +- src/bin/scripts/t/100_vacuumdb.pl | 6 +- src/bin/scripts/vacuumdb.c | 88 ++++++++----------- 14 files changed, 95 insertions(+), 180 deletions(-) diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 86d42a98a27..74cae32ae9f 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -3460,8 +3460,8 @@ main(int argc, char *argv[]) return 0; } - if (pwprompt && pwfilename) - pg_fatal("password prompt and password file cannot be specified together"); + check_mut_excl_opts(pwprompt, "-W/--pwprompt", + pwfilename != NULL, "--pwfile"); check_authmethod_unspecified(&authmethodlocal); check_authmethod_unspecified(&authmethodhost); diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 4daf985ab83..00a2bb753f3 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -2585,12 +2585,8 @@ main(int argc, char **argv) * Can't use --format with --target. Without --target, default format is * tar. */ - if (backup_target != NULL && format != '\0') - { - pg_log_error("cannot specify both format and backup target"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(format != '\0', "-F/--format", + backup_target != NULL, "-t/--target"); if (format == '\0') format = 'p'; @@ -2603,12 +2599,8 @@ main(int argc, char **argv) pg_log_error_hint("Try \"%s --help\" for more information.", progname); exit(1); } - if (basedir != NULL && backup_target != NULL) - { - pg_log_error("cannot specify both output directory and backup target"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(basedir != NULL, "-D/--pgdata", + backup_target != NULL, "-t/--target"); /* * If the user has not specified where to perform backup compression, @@ -2699,16 +2691,10 @@ main(int argc, char **argv) /* * Sanity checks for replication slot options. */ + check_mut_excl_opts(no_slot, "--no-slot", + replication_slot != NULL, "-S/--slot"); if (no_slot) - { - if (replication_slot) - { - pg_log_error("--no-slot cannot be used with slot name"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } temp_replication_slot = false; - } if (create_slot) { @@ -2720,26 +2706,17 @@ main(int argc, char **argv) exit(1); } - if (no_slot) - { - pg_log_error("%s and %s are incompatible options", - "--create-slot", "--no-slot"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(create_slot, "-C/--create-slot", + no_slot, "--no-slot"); } /* * Sanity checks on WAL directory. */ + check_mut_excl_opts(xlog_dir != NULL, "--waldir", + backup_target != NULL, "-t/--target"); if (xlog_dir) { - if (backup_target != NULL) - { - pg_log_error("WAL directory location cannot be specified along with a backup target"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } if (format != 'p') { pg_log_error("WAL directory location can only be specified in plain mode"); @@ -2760,32 +2737,16 @@ main(int argc, char **argv) /* * Sanity checks for progress reporting options. */ - if (showprogress && !estimatesize) - { - pg_log_error("%s and %s are incompatible options", - "--progress", "--no-estimate-size"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(showprogress, "-P/--progress", + !estimatesize, "--no-estimate-size"); /* * Sanity checks for backup manifest options. */ - if (!manifest && manifest_checksums != NULL) - { - pg_log_error("%s and %s are incompatible options", - "--no-manifest", "--manifest-checksums"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } - - if (!manifest && manifest_force_encode) - { - pg_log_error("%s and %s are incompatible options", - "--no-manifest", "--manifest-force-encode"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(!manifest, "--no-manifest", + manifest_checksums != NULL, "--manifest-checksums"); + check_mut_excl_opts(!manifest, "--no-manifest", + manifest_force_encode, "--manifest-force-encode"); /* connection in replication mode to server */ conn = GetConnection(); diff --git a/src/bin/pg_basebackup/pg_createsubscriber.c b/src/bin/pg_basebackup/pg_createsubscriber.c index 20b354aed56..3c250bfe95d 100644 --- a/src/bin/pg_basebackup/pg_createsubscriber.c +++ b/src/bin/pg_basebackup/pg_createsubscriber.c @@ -26,6 +26,7 @@ #include "common/pg_prng.h" #include "common/restricted_token.h" #include "datatype/timestamp.h" +#include "fe_utils/option_utils.h" #include "fe_utils/recovery_gen.h" #include "fe_utils/simple_list.h" #include "fe_utils/string_utils.h" @@ -2416,27 +2417,14 @@ main(int argc, char **argv) } /* Validate that --all is not used with incompatible options */ - if (opt.all_dbs) - { - char *bad_switch = NULL; - - if (num_dbs > 0) - bad_switch = "--database"; - else if (num_pubs > 0) - bad_switch = "--publication"; - else if (num_replslots > 0) - bad_switch = "--replication-slot"; - else if (num_subs > 0) - bad_switch = "--subscription"; - - if (bad_switch) - { - pg_log_error("options %s and %s cannot be used together", - bad_switch, "-a/--all"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } - } + check_mut_excl_opts(num_dbs > 0, "-d/--database", + opt.all_dbs, "-a/--all"); + check_mut_excl_opts(num_pubs > 0, "--publication", + opt.all_dbs, "-a/--all"); + check_mut_excl_opts(num_replslots > 0, "--replication-slot", + opt.all_dbs, "-a/--all"); + check_mut_excl_opts(num_subs > 0, "--subscription", + opt.all_dbs, "-a/--all"); /* Any non-option arguments? */ if (optind < argc) diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/pg_receivewal.c index 80025c58295..64c81a6f03b 100644 --- a/src/bin/pg_basebackup/pg_receivewal.c +++ b/src/bin/pg_basebackup/pg_receivewal.c @@ -770,12 +770,8 @@ main(int argc, char **argv) exit(1); } - if (do_drop_slot && do_create_slot) - { - pg_log_error("cannot use --create-slot together with --drop-slot"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(do_create_slot, "--create-slot", + do_drop_slot, "--drop-slot"); if (replication_slot == NULL && (do_drop_slot || do_create_slot)) { @@ -786,12 +782,8 @@ main(int argc, char **argv) exit(1); } - if (synchronous && !do_sync) - { - pg_log_error("cannot use --synchronous together with --no-sync"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(synchronous, "--synchronous", + !do_sync, "--no-sync"); /* * Required arguments diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index feba45095e4..694eabc95fe 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -903,19 +903,15 @@ main(int argc, char **argv) exit(1); } - if (do_drop_slot && (do_create_slot || do_start_slot)) - { - pg_log_error("cannot use --create-slot or --start together with --drop-slot"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(do_create_slot, "--create-slot", + do_drop_slot, "--drop-slot"); + check_mut_excl_opts(do_start_slot, "--start", + do_drop_slot, "--drop-slot"); - if (XLogRecPtrIsValid(startpos) && (do_create_slot || do_drop_slot)) - { - pg_log_error("cannot use --create-slot or --drop-slot together with --startpos"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(do_create_slot, "--create-slot", + XLogRecPtrIsValid(startpos), "-I/--startpos"); + check_mut_excl_opts(do_drop_slot, "--drop-slot", + XLogRecPtrIsValid(startpos), "-I/--startpos"); if (XLogRecPtrIsValid(endpos) && !do_start_slot) { diff --git a/src/bin/pg_basebackup/t/010_pg_basebackup.pl b/src/bin/pg_basebackup/t/010_pg_basebackup.pl index 23a757b1c86..858e70bbb0a 100644 --- a/src/bin/pg_basebackup/t/010_pg_basebackup.pl +++ b/src/bin/pg_basebackup/t/010_pg_basebackup.pl @@ -706,7 +706,7 @@ $node->command_fails_like( '--wal-method' => 'none', '--pgdata' => "$tempdir/blackhole" ], - qr/cannot specify both output directory and backup target/, + qr/options -D\/--pgdata and -t\/--target cannot be used together/, 'backup target and output directory'); $node->command_fails_like( [ @@ -715,7 +715,7 @@ $node->command_fails_like( '--wal-method' => 'none', '--format' => 'tar' ], - qr/cannot specify both format and backup target/, + qr/options -F\/--format and -t\/--target cannot be used together/, 'backup target and format'); $node->command_ok( [ @@ -776,7 +776,7 @@ $node->command_fails_like( '--slot' => 'slot0', '--no-slot' ], - qr/--no-slot cannot be used with slot name/, + qr/options --no-slot and -S\/--slot cannot be used together/, 'pg_basebackup fails with --create-slot --slot --no-slot'); $node->command_fails_like( [ @@ -784,7 +784,7 @@ $node->command_fails_like( '--target' => 'blackhole', '--pgdata' => "$tempdir/blackhole" ], - qr/cannot specify both output directory and backup target/, + qr/options -D\/--pgdata and -t\/--target cannot be used together/, 'backup target and output directory'); $node->command_ok( diff --git a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl index 9252d1c3c5c..508859ee597 100644 --- a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl +++ b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl @@ -414,7 +414,7 @@ command_fails_like( '--database' => $db1, '--all', ], - qr/options --database and -a\/--all cannot be used together/, + qr/options -d\/--database and -a\/--all cannot be used together/, 'fail if --database is used with --all'); # run pg_createsubscriber with '--publication' and '--all' and verify diff --git a/src/bin/pg_rewind/pg_rewind.c b/src/bin/pg_rewind/pg_rewind.c index d1d726ee82d..d8239fc5edd 100644 --- a/src/bin/pg_rewind/pg_rewind.c +++ b/src/bin/pg_rewind/pg_rewind.c @@ -244,12 +244,8 @@ main(int argc, char **argv) exit(1); } - if (datadir_source != NULL && connstr_source != NULL) - { - pg_log_error("only one of --source-pgdata or --source-server can be specified"); - pg_log_error_hint("Try \"%s --help\" for more information.", progname); - exit(1); - } + check_mut_excl_opts(datadir_source != NULL, "--source-pgdata", + connstr_source != NULL, "--source-server"); if (datadir_target == NULL) { diff --git a/src/bin/pg_verifybackup/pg_verifybackup.c b/src/bin/pg_verifybackup/pg_verifybackup.c index 81694144b46..445dc190e07 100644 --- a/src/bin/pg_verifybackup/pg_verifybackup.c +++ b/src/bin/pg_verifybackup/pg_verifybackup.c @@ -22,6 +22,7 @@ #include "access/xlog_internal.h" #include "common/logging.h" #include "common/parse_manifest.h" +#include "fe_utils/option_utils.h" #include "fe_utils/simple_list.h" #include "getopt_long.h" #include "pg_verifybackup.h" @@ -258,9 +259,8 @@ main(int argc, char **argv) } /* Complain if the specified arguments conflict */ - if (show_progress && quiet) - pg_fatal("cannot specify both %s and %s", - "-P/--progress", "-q/--quiet"); + check_mut_excl_opts(show_progress, "-P/--progress", + quiet, "-q/--quiet"); /* Unless --no-parse-wal was specified, we will need pg_waldump. */ if (!no_parse_wal) diff --git a/src/bin/pg_verifybackup/t/004_options.pl b/src/bin/pg_verifybackup/t/004_options.pl index 18b3ca15708..fa6ffa9fc33 100644 --- a/src/bin/pg_verifybackup/t/004_options.pl +++ b/src/bin/pg_verifybackup/t/004_options.pl @@ -59,7 +59,7 @@ $primary->command_fails_like( # Test invalid options command_fails_like( [ 'pg_verifybackup', '--progress', '--quiet', $backup_path ], - qr{cannot specify both -P/--progress and -q/--quiet}, + qr{options -P/--progress and -q/--quiet cannot be used together}, 'cannot use --progress and --quiet at the same time'); # Corrupt the PG_VERSION file. diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 06c43fd6942..a9d77453bf3 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -7263,8 +7263,8 @@ main(int argc, char **argv) pg_fatal("some of the specified options cannot be used in benchmarking mode"); } - if (nxacts > 0 && duration > 0) - pg_fatal("specify either a number of transactions (-t) or a duration (-T), not both"); + check_mut_excl_opts(nxacts > 0, "-t/--transactions", + duration > 0, "-T/--time"); /* Use DEFAULT_NXACTS if neither nxacts nor duration is specified. */ if (nxacts <= 0 && duration <= 0) @@ -7275,8 +7275,8 @@ main(int argc, char **argv) pg_fatal("log sampling (--sampling-rate) is allowed only when logging transactions (-l)"); /* --sampling-rate may not be used with --aggregate-interval */ - if (sample_rate > 0.0 && agg_interval > 0) - pg_fatal("log sampling (--sampling-rate) and aggregation (--aggregate-interval) cannot be used at the same time"); + check_mut_excl_opts(sample_rate > 0.0, "--sampling-rate", + agg_interval > 0, "--aggregate-interval"); if (agg_interval > 0 && !use_log) pg_fatal("log aggregation is allowed only when actually logging transactions"); diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index 0e8d92f8abd..a3cfa783f03 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/src/bin/pgbench/t/002_pgbench_no_server.pl @@ -113,12 +113,12 @@ my @options = ( [ '-t XOR -T', '-N -l --aggregate-interval=5 --log-prefix=notused -t 1000 -T 1', - [qr{specify either }] + [qr{-t/--transactions and -T/--time cannot be used}] ], [ '-T XOR -t', '-P 1 --progress-timestamp -l --sampling-rate=0.001 -T 10 -t 1000', - [qr{specify either }] + [qr{-t/--transactions and -T/--time cannot be used}] ], [ 'bad variable', '--define foobla', [qr{invalid variable definition}] ], [ 'invalid fillfactor', '-F 1', [qr{-F/--fillfactor must be in range}] ], @@ -208,7 +208,7 @@ my @options = ( [ 'sampling XOR aggregate', '-l --sampling-rate=0.1 --aggregate-interval=3', - [qr{sampling .* aggregation .* cannot be used at the same time}] + [qr{--sampling-rate and --aggregate-interval cannot be used}] ], [ 'aggregate => log', '--aggregate-interval=3', diff --git a/src/bin/scripts/t/100_vacuumdb.pl b/src/bin/scripts/t/100_vacuumdb.pl index b78fa2a38de..44996b4ca46 100644 --- a/src/bin/scripts/t/100_vacuumdb.pl +++ b/src/bin/scripts/t/100_vacuumdb.pl @@ -200,7 +200,7 @@ $node->command_fails_like( '--table' => 'pg_class', 'postgres', ], - qr/cannot vacuum specific table\(s\) and exclude schema\(s\) at the same time/, + qr/options -t\/--table and -N\/--exclude-schema cannot be used together/, 'cannot use options --exclude-schema and ---table at the same time'); $node->command_fails_like( [ @@ -209,7 +209,7 @@ $node->command_fails_like( '--table' => 'pg_class', 'postgres' ], - qr/cannot vacuum all tables in schema\(s\) and specific table\(s\) at the same time/, + qr/options -t\/--table and -n\/--schema cannot be used together/, 'cannot use options --schema and ---table at the same time'); $node->command_fails_like( [ @@ -218,7 +218,7 @@ $node->command_fails_like( '--exclude-schema' => '"Foo"', 'postgres' ], - qr/cannot vacuum all tables in schema\(s\) and exclude schema\(s\) at the same time/, + qr/options -n\/--schema and -N\/--exclude-schema cannot be used together/, 'cannot use options --schema and --exclude-schema at the same time'); $node->issues_sql_like( [ 'vacuumdb', '--all', '--exclude-schema' => 'pg_catalog' ], diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index f8158ca6a78..d5cd42e3370 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -73,6 +73,8 @@ main(int argc, char *argv[]) SimpleStringList objects = {NULL, NULL}; int concurrentCons = 1; unsigned int tbl_count = 0; + bool analyze_only; + const char *analyze_opt; int ret; /* initialize options */ @@ -243,52 +245,40 @@ main(int argc, char *argv[]) */ check_objfilter(vacopts.objfilter); - if (vacopts.mode == MODE_ANALYZE || - vacopts.mode == MODE_ANALYZE_IN_STAGES) - { - if (vacopts.full) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "full"); - if (vacopts.freeze) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "freeze"); - if (vacopts.disable_page_skipping) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "disable-page-skipping"); - if (vacopts.no_index_cleanup) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "no-index-cleanup"); - if (vacopts.force_index_cleanup) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "force-index-cleanup"); - if (!vacopts.do_truncate) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "no-truncate"); - if (!vacopts.process_main) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "no-process-main"); - if (!vacopts.process_toast) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "no-process-toast"); - /* allow 'and_analyze' with 'analyze_only' */ - } + analyze_only = (vacopts.mode == MODE_ANALYZE || + vacopts.mode == MODE_ANALYZE_IN_STAGES); + if (vacopts.mode == MODE_ANALYZE_IN_STAGES) + analyze_opt = "--analyze-in-stages"; + else + analyze_opt = "-Z/--analyze-only"; + + check_mut_excl_opts(analyze_only, analyze_opt, + vacopts.full, "-f/--full"); + check_mut_excl_opts(analyze_only, analyze_opt, + vacopts.freeze, "-F/--freeze"); + check_mut_excl_opts(analyze_only, analyze_opt, + vacopts.disable_page_skipping, "--disable-page-skipping"); + check_mut_excl_opts(analyze_only, analyze_opt, + vacopts.no_index_cleanup, "--no-index-cleanup"); + check_mut_excl_opts(analyze_only, analyze_opt, + vacopts.force_index_cleanup, "--force-index-cleanup"); + check_mut_excl_opts(analyze_only, analyze_opt, + !vacopts.do_truncate, "--no-truncate"); + check_mut_excl_opts(analyze_only, analyze_opt, + !vacopts.process_main, "--no-process-main"); + check_mut_excl_opts(analyze_only, analyze_opt, + !vacopts.process_toast, "--no-process-toast"); + /* allow 'and_analyze' with 'analyze_only' */ /* Prohibit full and analyze_only options with parallel option */ - if (vacopts.parallel_workers >= 0) - { - if (vacopts.mode == MODE_ANALYZE || - vacopts.mode == MODE_ANALYZE_IN_STAGES) - pg_fatal("cannot use the \"%s\" option when performing only analyze", - "parallel"); - if (vacopts.full) - pg_fatal("cannot use the \"%s\" option when performing full vacuum", - "parallel"); - } + check_mut_excl_opts(analyze_only, analyze_opt, + vacopts.parallel_workers >= 0, "-P/--parallel"); + check_mut_excl_opts(vacopts.parallel_workers >= 0, "-P/--parallel", + vacopts.full, "-f/--full"); /* Prohibit --no-index-cleanup and --force-index-cleanup together */ - if (vacopts.no_index_cleanup && vacopts.force_index_cleanup) - pg_fatal("cannot use the \"%s\" option with the \"%s\" option", - "no-index-cleanup", "force-index-cleanup"); + check_mut_excl_opts(vacopts.no_index_cleanup, "--no-index-cleanup", + vacopts.force_index_cleanup, "--force-index-cleanup"); /* * buffer-usage-limit is not allowed with VACUUM FULL unless ANALYZE is @@ -330,17 +320,9 @@ check_objfilter(uint32 objfilter) (objfilter & OBJFILTER_DATABASE)) pg_fatal("cannot vacuum all databases and a specific one at the same time"); - if ((objfilter & OBJFILTER_TABLE) && - (objfilter & OBJFILTER_SCHEMA)) - pg_fatal("cannot vacuum all tables in schema(s) and specific table(s) at the same time"); - - if ((objfilter & OBJFILTER_TABLE) && - (objfilter & OBJFILTER_SCHEMA_EXCLUDE)) - pg_fatal("cannot vacuum specific table(s) and exclude schema(s) at the same time"); - - if ((objfilter & OBJFILTER_SCHEMA) && - (objfilter & OBJFILTER_SCHEMA_EXCLUDE)) - pg_fatal("cannot vacuum all tables in schema(s) and exclude schema(s) at the same time"); + check_mut_excl_opts((objfilter & OBJFILTER_TABLE) != 0, "-t/--table", + (objfilter & OBJFILTER_SCHEMA) != 0, "-n/--schema", + (objfilter & OBJFILTER_SCHEMA_EXCLUDE) != 0, "-N/--exclude-schema"); } -- 2.55.0