From: Andrew Dunstan Date: Fri, 20 Feb 2009 02:57:21 +0000 (+0000) Subject: Reconnect to the right database when using parallel restore with -C. Fixes bug report... X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=c72ad065d4d03515c5feddd716d76f50177cf0a9;p=users%2Fsimon%2Fpostgres.git Reconnect to the right database when using parallel restore with -C. Fixes bug reported by Olivier Prenant --- diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 6cf171d455..5eda359a3e 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -487,6 +487,7 @@ restore_toc_entry(ArchiveHandle *AH, TocEntry *te, { ahlog(AH, 1, "connecting to new database \"%s\"\n", te->tag); _reconnectToDB(AH, te->tag); + ropt->dbname = strdup(te->tag); } }