pgsql: Fix detection of unseekable files for fseek() and ftello() with

2023-04-11 Thread Michael Paquier
Fix detection of unseekable files for fseek() and ftello() with MSVC Calling fseek() or ftello() on a handle to a non-seeking device such as a pipe or a communications device is not supported. Unfortunately, MSVC's flavor of these routines, _fseeki64() and _ftelli64(), do not return an error when

pgsql: Fix detection of unseekable files for fseek() and ftello() with

2023-04-11 Thread Michael Paquier
Fix detection of unseekable files for fseek() and ftello() with MSVC Calling fseek() or ftello() on a handle to a non-seeking device such as a pipe or a communications device is not supported. Unfortunately, MSVC's flavor of these routines, _fseeki64() and _ftelli64(), do not return an error when

pgsql: Fix detection of unseekable files for fseek() and ftello() with

2023-04-11 Thread Michael Paquier
Fix detection of unseekable files for fseek() and ftello() with MSVC Calling fseek() or ftello() on a handle to a non-seeking device such as a pipe or a communications device is not supported. Unfortunately, MSVC's flavor of these routines, _fseeki64() and _ftelli64(), do not return an error when