8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3682025 commit 614ce64Copy full SHA for 614ce64
src/bin/pg_dump/pg_restore.c
@@ -314,6 +314,20 @@ main(int argc, char **argv)
314
opts->useDB = 1;
315
}
316
317
+ if (opts->dataOnly && opts->schemaOnly)
318
+ {
319
+ fprintf(stderr, _("%s: options -s/--schema-only and -a/--data-only cannot be used together\n"),
320
+ progname);
321
+ exit_nicely(1);
322
+ }
323
+
324
+ if (opts->dataOnly && opts->dropSchema)
325
326
+ fprintf(stderr, _("%s: options -c/--clean and -a/--data-only cannot be used together\n"),
327
328
329
330
331
/* Can't do single-txn mode with multiple connections */
332
if (opts->single_txn && numWorkers > 1)
333
{
0 commit comments