mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix a pg_dump scenario for platforms where SEEK_CUR != 1.
POSIX allows such platforms. Given the lack of complaints, we may not
currently test on such a platform. This is new in v18 (commit
7d5c83b4e9
), so no back-patch.
This commit is contained in:
@ -2655,7 +2655,7 @@ WriteToc(ArchiveHandle *AH)
|
||||
pg_fatal("unexpected TOC entry in WriteToc(): %d %s %s",
|
||||
te->dumpId, te->desc, te->tag);
|
||||
|
||||
if (fseeko(AH->FH, te->defnLen, SEEK_CUR != 0))
|
||||
if (fseeko(AH->FH, te->defnLen, SEEK_CUR) != 0)
|
||||
pg_fatal("error during file seek: %m");
|
||||
}
|
||||
else if (te->defnDumper)
|
||||
|
Reference in New Issue
Block a user