> > 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