Index: src/bin/pg_dump/pg_dump.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/pg_dump/pg_dump.c,v
retrieving revision 1.291
diff -c -c -r1.291 pg_dump.c
*** src/bin/pg_dump/pg_dump.c	22 Aug 2002 21:35:50 -0000	1.291
--- src/bin/pg_dump/pg_dump.c	27 Aug 2002 20:33:50 -0000
***************
*** 467,472 ****
--- 467,478 ----
  		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");
