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

Re: Win32 Powerfail testing

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: dpage(at)vale-housing(dot)co(dot)uk
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Win32 Powerfail testing
Date: 2003-03-06 15:16:41
Message-ID: 20030307.001641.112624751.t-ishii@sra.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
> > Are you asking the way how to open files in the buffer 
> > manager? If so, basically PostgreSQL uses open() with flags 
> > (O_RDWR | PG_BINARY, 0600).
> 
> I cannot find it now, but I'm sure I read that FlushFileBuffers() has no
> effect unless the file was opened with CreateFile() with the
> GENERIC_WRITE flag. A quick google shows quite a few people recommending
> that approach to others having trouble flushing files opened with fopen
> or _open.

I'm sure FlushFileBuffers() is usesless for files opend with open()
too. 

As I said in the previlus mails, open()+_commit() does the right job
with the transaction log files. So probably I think I should stick
with open()+_commit() approach for ordinary table/index files too.
--
Tatsuo Ishii

In response to

pgsql-hackers by date

Next:From: gregDate: 2003-03-06 15:23:39
Subject: Re: Who puts the Windows binaries on the FTP server?
Previous:From: Rod TaylorDate: 2003-03-06 15:10:50
Subject: Re: bug in contrib/adddepend

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