Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc76cb77

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 parent6bd89d0 commitc76cb77

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/2421: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,"restoringlarge object data\n");
318+
ahlog(AH,1,"restoring%s\n",te->desc);
318319

319320
_selectOutputSchema(AH,"pg_catalog");
320321

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp