aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2009-02-20 02:57:21 +0000
committerAndrew Dunstan <andrew@dunslane.net>2009-02-20 02:57:21 +0000
commitfae3083c3bcc54b916c309671dd1ef1fc3e60e50 (patch)
tree596e090e3757b3fcf5b0004082393a5239022df2 /src
parent7920ed389cb361e8580e379e60c094f376ec9672 (diff)
downloadpostgresql-fae3083c3bcc54b916c309671dd1ef1fc3e60e50.tar.gz
postgresql-fae3083c3bcc54b916c309671dd1ef1fc3e60e50.zip
Reconnect to the right database when using parallel restore with -C. Fixes bug reported by Olivier Prenant
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index 076bb0bf6f1..0b46e1097b3 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.162 2009/02/02 20:07:36 adunstan Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.163 2009/02/20 02:57:21 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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);
}
}