mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Disable use of -c and -a together in pg_dump; they don't make sense together.
This commit is contained in:
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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);
|
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)
|
if (outputBlobs && selectTablename != NULL && strlen(selectTablename) > 0)
|
||||||
{
|
{
|
||||||
write_msg(NULL, "Large object output is not supported for a single table.\n");
|
write_msg(NULL, "Large object output is not supported for a single table.\n");
|
||||||
|
Reference in New Issue
Block a user