From: Bruce Momjian Date: Tue, 27 Aug 2002 21:04:58 +0000 (+0000) Subject: Disable use of -c and -a together in pg_dump; they don't make sense together. X-Git-Tag: REL7_3~735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9afa3058350b3bd8c9e2801b9d94df8306dd36a0;p=postgresql Disable use of -c and -a together in pg_dump; they don't make sense together. --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index c3a1ace2d0..31790dde3e 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -22,7 +22,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.292 2002/08/27 18:57:26 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.293 2002/08/27 21:04:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -468,6 +468,12 @@ main(int argc, char **argv) exit(1); } + if (dataOnly && outputClean) + { + write_msg(NULL, "The options \"clean\" (-c) and \"data only\" (-a) cannot be used together.\n"); + exit(1); + } + if (outputBlobs && selectTablename != NULL && strlen(selectTablename) > 0) { write_msg(NULL, "Large object output is not supported for a single table.\n");