Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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: win32_o_direct.patch
Description: application/octet-stream (2.5 KB)

Responses

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group