Commit bf0945e8 authored by Tom Lane's avatar Tom Lane

Fix pg_dump output to a named tar-file archive.

"pg_dump -Ft -f filename ..." got broken by my recent commit
4317e024, which I fear I only tested
in the output-to-stdout variant.

Report and fix by Muhammad Asif Naeem.
parent 7d754961
...@@ -862,6 +862,7 @@ _CloseArchive(ArchiveHandle *AH) ...@@ -862,6 +862,7 @@ _CloseArchive(ArchiveHandle *AH)
ropt = NewRestoreOptions(); ropt = NewRestoreOptions();
memcpy(ropt, AH->ropt, sizeof(RestoreOptions)); memcpy(ropt, AH->ropt, sizeof(RestoreOptions));
ropt->filename = NULL;
ropt->dropSchema = 1; ropt->dropSchema = 1;
ropt->compression = 0; ropt->compression = 0;
ropt->superuser = NULL; ropt->superuser = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment