diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2009-02-20 02:57:21 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2009-02-20 02:57:21 +0000 |
commit | fae3083c3bcc54b916c309671dd1ef1fc3e60e50 (patch) | |
tree | 596e090e3757b3fcf5b0004082393a5239022df2 /src | |
parent | 7920ed389cb361e8580e379e60c094f376ec9672 (diff) | |
download | postgresql-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.c | 3 |
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); } } |