Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> Heikki Linnakangas wrote:
>>> cygwin supports POSIX_FADV_SEQUENTIAL (and POSIX_FADV_NORMAL to revert
>>> it), but not any of the other flags. It maps it to
>>> NtSetInformationFile() like this:
>
>> We set this in our open() wrapper in the code today.
>
> Really? Where? I didn't find any of the mentioned symbols in a quick
> grep.
We pass FILE_FLAG_SEQUENTIAL_SCAN to the open call if O_SEQUENTIAL is
specified.
> I'm not sure how Windows interprets FILE_SEQUENTIAL_ONLY, but if that
> really means that it assumes *only* sequential accesses will happen,
> I'm not sure that we'd want to turn it on.
It's an access-optimization hint, that's all.
//Magnus