agora inbox for [email protected]
help / color / mirror / Atom feedFrom: Justin Pryzby <[email protected]>
Subject: [PATCH 4/7] f!
Date: Sat, 14 Jan 2023 10:31:47 -0600
---
src/bin/pg_dump/compress_gzip.c | 9 +--------
src/bin/pg_dump/pg_backup_archiver.c | 1 -
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/bin/pg_dump/compress_gzip.c b/src/bin/pg_dump/compress_gzip.c
index 37c841c5a9b..b00be32f2e9 100644
--- a/src/bin/pg_dump/compress_gzip.c
+++ b/src/bin/pg_dump/compress_gzip.c
@@ -291,17 +291,10 @@ static int
Gzip_close(CompressFileHandle *CFH)
{
gzFile gzfp = (gzFile) CFH->private_data;
- int save_errno;
- int ret;
CFH->private_data = NULL;
- ret = gzclose(gzfp);
-
- save_errno = errno;
- errno = save_errno;
-
- return ret;
+ return gzclose(gzfp);
}
static int
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index 06f0b46cbfc..7f06beff61c 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -385,7 +385,6 @@ RestoreArchive(Archive *AHX)
*/
supports_compression = true;
if (AH->compression_spec.algorithm != PG_COMPRESSION_NONE &&
- AH->compression_spec.algorithm == PG_COMPRESSION_GZIP &&
AH->PrintTocDataPtr != NULL)
{
for (te = AH->toc->next; te != AH->toc; te = te->next)
--
2.25.1
--e7jIye1Ygp5H0AIi
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0005-Add-LZ4-compression-in-pg_-dump-restore.patch"
view thread (16+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 4/7] f!
In-Reply-To: <no-message-id-105212@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox