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

Commitfae3083

Browse files
committed
Reconnect to the right database when using parallel restore with -C. Fixes bug reported by Olivier Prenant
1 parent7920ed3 commitfae3083

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 2 additions & 1 deletion
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.162 2009/02/02 20:07:36 adunstan Exp $
18+
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.163 2009/02/20 02:57:21 adunstan Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -487,6 +487,7 @@ restore_toc_entry(ArchiveHandle *AH, TocEntry *te,
487487
{
488488
ahlog(AH,1,"connecting to new database \"%s\"\n",te->tag);
489489
_reconnectToDB(AH,te->tag);
490+
ropt->dbname=strdup(te->tag);
490491
}
491492
}
492493

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp