Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9afa305

Browse files
committed
Disable use of -c and -a together in pg_dump; they don't make sense together.
1 parent65a34e9 commit9afa305

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*
2424
* IDENTIFICATION
25-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.292 2002/08/2718:57:26 petere Exp $
25+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.293 2002/08/2721:04:58 momjian Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
@@ -468,6 +468,12 @@ main(int argc, char **argv)
468468
exit(1);
469469
}
470470

471+
if (dataOnly&&outputClean)
472+
{
473+
write_msg(NULL,"The options \"clean\" (-c) and \"data only\" (-a) cannot be used together.\n");
474+
exit(1);
475+
}
476+
471477
if (outputBlobs&&selectTablename!=NULL&&strlen(selectTablename)>0)
472478
{
473479
write_msg(NULL,"Large object output is not supported for a single table.\n");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp