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 13:59:50
Message-ID: 20030306.225950.78705069.t-ishii@sra.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
> > Sorry, but it does not help. The page says we could use
> > FlushFileBuffers() to sync the kernel buffer to the
> > disk. Unfortunately, it requires a file descriptor to flush 
> > for its argument. Thus it could not be a replacement of 
> > sync(). Actually I have modified the buffer manager so that 
> > it remembers all file descriptors those have not been synced 
> > yet to the disk at the checkpoint time to sync them later. 
> > However I found this modification does not help at all with 
> > some reason I don't know.
> 
> How do you open the files (function, flags etc)? 

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).
--
Tatsuo Ishii

In response to

pgsql-hackers by date

Next:From: Justin CliftDate: 2003-03-06 14:11:23
Subject: Re: Who puts the Windows binaries on the FTP server?
Previous:From: Peter EisentrautDate: 2003-03-06 13:57:46
Subject: Re: Who puts the Windows binaries on the FTP server?

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