*** a/src/bin/pg_dump/pg_backup_archiver.c
--- b/src/bin/pg_dump/pg_backup_archiver.c
***************
*** 146,151 **** RestoreArchive(Archive *AHX, RestoreOptions *ropt)
--- 146,157 ----
  	 */
  	if (ropt->create && ropt->dropSchema)
  		die_horribly(AH, modulename, "-C and -c are incompatible options\n");
+ 	/*
+ 	 * -1 is not compatible with -C, because we can't create a database
+ 	 *  inside a transaction block.
+ 	 */
+ 	if (ropt->create && ropt->single_txn)
+ 		die_horribly(AH, modulename, "-C and -1 are incompatible options\n");
  
  	/*
  	 * If we're using a DB connection, then connect it.

