Fix fseek() detection of unseekable files on WIN32 - Mailing list pgsql-hackers

From Juan José Santamaría Flecha
Subject Fix fseek() detection of unseekable files on WIN32
Date
Msg-id CAC+AXB26a4EmxM2suXxPpJaGrqAdxracd7hskLg-zxtPB50h7A@mail.gmail.com
Whole thread Raw
Responses Re: Fix fseek() detection of unseekable files on WIN32
List pgsql-hackers
Hello all,

As highlighted in [1] fseek() might fail to error even when accessing unseekable streams.

PFA a patch that checks the file type before the actual fseek(), so only supported calls are made. 


Regards,

Juan José Santamaría Flecha
Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Add macros for ReorderBufferTXN toptxn
Next
From: Juan José Santamaría Flecha
Date:
Subject: Re: pg_dump/pg_restore: Fix stdin/stdout handling of custom format on Win32