Re: Win32 Powerfail testing - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Win32 Powerfail testing
Date
Msg-id 20030307.220442.41628419.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: Win32 Powerfail testing  (Hannu Krosing <hannu@tm.ee>)
List pgsql-hackers
> > I presume that this implementation tracks which files have been opened
> > and uses _commit() to write all the changes to disk for those files?
> 
> But are there quarantees that all closed files are flushed to disk as
> well ?
> 
> Does postgres quarantee it by doing a _commit() before close() or do
> file system semantics quarantee that filehits the disk whan close()'d (I
> guess it does not not).

Of course no. So I remember all file names to be flushed in a table
(placed on thread global memory) and later open/_commit/close them at
the checkpoint time.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Mike Aubury
Date:
Subject: Re: SQL parser error
Next
From: "Adam Harnett"
Date:
Subject: ...