From: Tom Lane Date: Tue, 12 Jun 2012 01:55:48 +0000 (-0400) Subject: Fix pg_dump output to a named tar-file archive. X-Git-Tag: REL9_2_BETA3~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf0945e8636bf0390ef4569bbbf9763573211e03;p=postgresql Fix pg_dump output to a named tar-file archive. "pg_dump -Ft -f filename ..." got broken by my recent commit 4317e0246c645f60c39e6572644cff1cb03b4c65, which I fear I only tested in the output-to-stdout variant. Report and fix by Muhammad Asif Naeem. --- diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index c5e19968b7..67527b7585 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -862,6 +862,7 @@ _CloseArchive(ArchiveHandle *AH) ropt = NewRestoreOptions(); memcpy(ropt, AH->ropt, sizeof(RestoreOptions)); + ropt->filename = NULL; ropt->dropSchema = 1; ropt->compression = 0; ropt->superuser = NULL;