summaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_custom.c
diff options
context:
space:
mode:
authorPhilip Warner <pjw@rhyme.com.au>2001-04-25 07:03:20 +0000
committerPhilip Warner <pjw@rhyme.com.au>2001-04-25 07:03:20 +0000
commit8dc42a3aa2d2c1cfb02d70531088c3bbf4e4aac7 (patch)
tree169be88bd283b6ce9b4b9c068c7b3e82ae422244 /src/bin/pg_dump/pg_backup_custom.c
parent38b0f2fb3b401f35a0a63af3bce7da5babc2d5c3 (diff)
downloadpostgresql-8dc42a3aa2d2c1cfb02d70531088c3bbf4e4aac7.tar.gz
- Fixed CONSTRAINT TRIGGER dump to record tgconstrelid properly
- pgsql v7.0 compatbility
Diffstat (limited to 'src/bin/pg_dump/pg_backup_custom.c')
-rw-r--r--src/bin/pg_dump/pg_backup_custom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_backup_custom.c b/src/bin/pg_dump/pg_backup_custom.c
index b4311e8f87..3e839ca38b 100644
--- a/src/bin/pg_dump/pg_backup_custom.c
+++ b/src/bin/pg_dump/pg_backup_custom.c
@@ -19,7 +19,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.10 2001/04/01 05:42:51 pjw Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.11 2001/04/25 07:03:19 pjw Exp $
*
* Modifications - 28-Jun-2000 - pjw@rhyme.com.au
*
@@ -786,6 +786,7 @@ _ReadBuf(ArchiveHandle *AH, void *buf, int len)
res = fread(buf, 1, len, AH->FH);
ctx->filePos += res;
+
return res;
}
@@ -854,7 +855,10 @@ _getFilePos(ArchiveHandle *AH, lclContext *ctx)
{
pos = ftell(AH->FH);
if (pos != ctx->filePos)
- fprintf(stderr, "Warning: ftell mismatch with filePos\n");
+ {
+ fprintf(stderr, "Warning: ftell mismatch with filePos - filePos used\n");
+ pos = ctx->filePos;
+ }
}
else
pos = ctx->filePos;