aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-06-11 21:55:48 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-06-11 21:55:48 -0400
commitbf0945e8636bf0390ef4569bbbf9763573211e03 (patch)
tree4290544e4162910bee5abd5585575a4e8778f440 /src
parent7d754961f799634128fb2d77632e2b53b736ae21 (diff)
downloadpostgresql-bf0945e8636bf0390ef4569bbbf9763573211e03.tar.gz
postgresql-bf0945e8636bf0390ef4569bbbf9763573211e03.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_backup_tar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c
index c5e19968b7c..67527b75850 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;