O_DIRECT support for Windows

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-patches(at)postgresql(dot)org
Subject: O_DIRECT support for Windows
Date: 2007-01-15 08:36:09
Message-ID: 20070115171253.5900.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

The attached is a patch to define O_DIRECT by ourselves on Windows,
and to map O_DIRECT to FILE_FLAG_NO_BUFFERING.

There will be a consistency in our support between Windows and other OSes
that have O_DIRECT. Also, there is the following comment that says, I read,
we should do so.
| handle other flags? (eg FILE_FLAG_NO_BUFFERING/FILE_FLAG_WRITE_THROUGH)

Is this worth doing? Do we need more performance reports for the change?

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Attachment Content-Type Size
win32_o_direct.patch application/octet-stream 2.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2007-01-15 09:16:30 Re: O_DIRECT support for Windows
Previous Message Jim Nasby 2007-01-15 03:07:23 Re: ODBC: how to change search_path in DSN?

Browse pgsql-patches by date

  From Date Subject
Next Message Dave Page 2007-01-15 09:14:56 Re: Allow dumping of roles or tablespaces
Previous Message Jaime Casanova 2007-01-15 04:16:10 Re: [PATCHES] Tablespace for temporary objects and sort files