Skip to content

Commit c76cb77

Browse files
committed
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.
1 parent 6bd89d0 commit c76cb77

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.128 2006/05/22 11:21:54 petere Exp $
18+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.129 2006/05/24 21:20:11 tgl Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -312,9 +312,10 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
312312

313313
_printTocEntry(AH, te, ropt, true, false);
314314

315-
if (strcmp(te->desc, "BLOBS") == 0)
315+
if (strcmp(te->desc, "BLOBS") == 0 ||
316+
strcmp(te->desc, "BLOB COMMENTS") == 0)
316317
{
317-
ahlog(AH, 1, "restoring large object data\n");
318+
ahlog(AH, 1, "restoring %s\n", te->desc);
318319

319320
_selectOutputSchema(AH, "pg_catalog");
320321

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy