Skip to content

Commit bf0945e

Browse files
committed
Fix pg_dump output to a named tar-file archive.
"pg_dump -Ft -f filename ..." got broken by my recent commit 4317e02, which I fear I only tested in the output-to-stdout variant. Report and fix by Muhammad Asif Naeem.
1 parent 7d75496 commit bf0945e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_dump/pg_backup_tar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ _CloseArchive(ArchiveHandle *AH)
862862

863863
ropt = NewRestoreOptions();
864864
memcpy(ropt, AH->ropt, sizeof(RestoreOptions));
865+
ropt->filename = NULL;
865866
ropt->dropSchema = 1;
866867
ropt->compression = 0;
867868
ropt->superuser = NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy