Em sex., 11 de set. de 2020 às 17:44, Tom Lane <tgl@sss.pgh.pa.us> escreveu:
Ranier Vilela <ranier.vf@gmail.com> writes: > New version, with support to read Virtual File (pipe, FIFO and socket). > With assert, in case, erroneous, of trying to read a pipe, with offset.
I do agree that it might be worth skipping the fseeko call in the probably-common case where seek_offset is zero. Otherwise I don't see much reason to change what's there.
Tom, if you think it's worth it, I agree with only avoiding syscal fseeko.