Re: Closing some 8.4 open items - Mailing list pgsql-hackers

From Dave Page
Subject Re: Closing some 8.4 open items
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Closing some 8.4 open items  (Heikki Linnakangas <[email protected]>)
List pgsql-hackers
On Wed, Apr 8, 2009 at 6:42 PM, Heikki Linnakangas
<[email protected]> wrote:
> Dave Page wrote:
>>
>> On Wednesday, April 8, 2009, Josh Berkus <[email protected]> wrote:
>>>
>>> Presumably fadvise is useless on Windows.  Anyone know?
>>
>> It is.
>
> 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:
>
>>      if (advice == POSIX_FADV_SEQUENTIAL)
>>        fmi.Mode |= FILE_SEQUENTIAL_ONLY;
>>      status = NtSetInformationFile (get_handle (), &io, &fmi, sizeof fmi,
>>                                     FileModeInformation);

Which is only useful with async IO as far as I'm aware.

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Closing some 8.4 open items
Next
From: Josh Berkus
Date:
Subject: Re: Closing some 8.4 open items