diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
new file mode 100644
index 3aebac8..3c2ee84
*** a/src/bin/pg_dump/pg_backup_archiver.c
--- b/src/bin/pg_dump/pg_backup_archiver.c
*************** RestoreArchive(Archive *AHX)
*** 435,440 ****
--- 435,443 ----
  						char	   *dropStmtPtr = dropStmt;
  						PQExpBuffer ftStmt = createPQExpBuffer();
  
+ 						if (strncmp(te->desc, "BLOB", 4) == 0)
+ 							exit_horribly(modulename, "large objects doesn't support --if-exists option\n");
+ 
  						/*
  						 * Need to inject IF EXISTS clause after ALTER TABLE
  						 * part in ALTER TABLE .. DROP statement
