From 35d05669a0455bb928e51ea532a791e7f097987d Mon Sep 17 00:00:00 2001 From: David Gilman Date: Fri, 22 May 2020 17:27:51 -0400 Subject: [PATCH 3/4] Remove unused seek check in tar dump format --- src/bin/pg_dump/pg_backup_tar.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index d5bfa55646..bb5d3b1f45 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -82,7 +82,6 @@ typedef struct typedef struct { - int hasSeek; pgoff_t filePos; TAR_MEMBER *blobToc; FILE *tarFH; @@ -192,8 +191,6 @@ InitArchiveFmt_Tar(ArchiveHandle *AH) */ /* setvbuf(ctx->tarFH, NULL, _IONBF, 0); */ - ctx->hasSeek = checkSeek(ctx->tarFH); - /* * We don't support compression because reading the files back is not * possible since gzdopen uses buffered IO which totally screws file @@ -226,8 +223,6 @@ InitArchiveFmt_Tar(ArchiveHandle *AH) ctx->tarFHpos = 0; - ctx->hasSeek = checkSeek(ctx->tarFH); - /* * Forcibly unmark the header as read since we use the lookahead * buffer -- 2.26.2