diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-05-24 21:20:11 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-05-24 21:20:11 +0000 |
commit | c76cb771053c8e50a16b7991ae80a9f8ab969119 (patch) | |
tree | 7269cbb0fb8bc55eca64a5529183307e72f1dce1 /src | |
parent | 6bd89d09c8d0982d7cf23d70bec8ddbf6c99557e (diff) | |
download | postgresql-c76cb771053c8e50a16b7991ae80a9f8ab969119.tar.gz postgresql-c76cb771053c8e50a16b7991ae80a9f8ab969119.zip |
Fix pg_restore to process BLOB COMMENT entries correctly; they aren't
really tables and shouldn't get DISABLE TRIGGER processing. Per bug
#2452 from Robert Treat.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 55cbf64bd0c..4db4e4b9e3a 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -15,7 +15,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.128 2006/05/22 11:21:54 petere Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.129 2006/05/24 21:20:11 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -312,9 +312,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"); |