Re: Closing some 8.4 open items

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Closing some 8.4 open items
Date: 2009-04-08 18:25:20
Message-ID: 937d27e10904081125t536ee0a7qa4f56d13d727a35c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 8, 2009 at 6:42 PM, Heikki Linnakangas
<heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> Dave Page wrote:
>>
>> On Wednesday, April 8, 2009, Josh Berkus <josh(at)agliodbs(dot)com> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2009-04-08 18:32:00 Re: Closing some 8.4 open items
Previous Message Magnus Hagander 2009-04-08 18:21:30 Re: Closing some 8.4 open items