aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_tar.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-10-25 01:33:17 +0000
committerBruce Momjian <bruce@momjian.us>2002-10-25 01:33:17 +0000
commitfc5c577e34a53af8104415bae63d315fee2b125a (patch)
tree8c997ff545de26936a0d532acbaac8ff7a6f2fe8 /src/bin/pg_dump/pg_backup_tar.c
parent2908a838ac2cf8cdccaa115249f8399eef8a731e (diff)
downloadpostgresql-fc5c577e34a53af8104415bae63d315fee2b125a.tar.gz
postgresql-fc5c577e34a53af8104415bae63d315fee2b125a.zip
Allow fseeko in pg_dump only if fseeko() will work for all supported file
sizes.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_tar.c')
-rw-r--r--src/bin/pg_dump/pg_backup_tar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c
index fdfcc95d4b1..6bbd1ba2a3d 100644
--- a/src/bin/pg_dump/pg_backup_tar.c
+++ b/src/bin/pg_dump/pg_backup_tar.c
@@ -16,7 +16,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.31 2002/10/22 19:15:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.32 2002/10/25 01:33:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -190,7 +190,7 @@ InitArchiveFmt_Tar(ArchiveHandle *AH)
*/
/* setvbuf(ctx->tarFH, NULL, _IONBF, 0); */
- ctx->hasSeek = (fseeko(ctx->tarFH, 0, SEEK_CUR) == 0);
+ ctx->hasSeek = checkSeek(ctx->tarFH);
if (AH->compression < 0 || AH->compression > 9)
AH->compression = Z_DEFAULT_COMPRESSION;
@@ -227,7 +227,7 @@ InitArchiveFmt_Tar(ArchiveHandle *AH)
ctx->tarFHpos = 0;
- ctx->hasSeek = (fseeko(ctx->tarFH, 0, SEEK_CUR) == 0);
+ ctx->hasSeek = checkSeek(ctx->tarFH);
/*
* Forcibly unmark the header as read since we use the lookahead