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.
[1]
https://www.postgresql.org/message-id/flat/b1448cd7-871e-20e3-8398-895e2d1d3bf9(at)gmail(dot)com
Regards,
Juan José Santamaría Flecha