]> granicus.if.org Git - postgresql/commitdiff
Fix pg_restore to process BLOB COMMENT entries correctly; they aren't
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 May 2006 21:20:24 +0000 (21:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 May 2006 21:20:24 +0000 (21:20 +0000)
really tables and shouldn't get DISABLE TRIGGER processing.  Per bug
#2452 from Robert Treat.

src/bin/pg_dump/pg_backup_archiver.c

index aa698e737264f56d105810a5e94a2876df945e21..1abd3b19912d871bebe9aae533cead367cc7b869 100644 (file)
@@ -15,7 +15,7 @@
  *
  *
  * IDENTIFICATION
- *             $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.117.2.3 2006/04/12 22:19:01 tgl Exp $
+ *             $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.117.2.4 2006/05/24 21:20:24 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -300,9 +300,10 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
 
                                        _printTocEntry(AH, te, ropt, true, false);
 
-                                       if (strcmp(te->desc, "BLOBS") == 0)
+                                       if (strcmp(te->desc, "BLOBS") == 0 ||
+                                               strcmp(te->desc, "BLOB COMMENTS") == 0)
                                        {
-                                               ahlog(AH, 1, "restoring large object data\n");
+                                               ahlog(AH, 1, "restoring %s\n", te->desc);
 
                                                _selectOutputSchema(AH, "pg_catalog");