Re: what is flushed?

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: what is flushed?
Date: 2004-09-16 03:28:05
Message-ID: 877jqusxiy.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:

> WAL has been a feature of Postgresql for years now... So yes, it's
> somewhat out of date...

Actually it kind of depends what it means. I think WAL records were always
written with fsync (or fdatasync/O_SYNC/O_DSYNC).

However right up until 7.4 checkpointing was done with sync(2). This means
that other unrelated i/o could cause unneeded delay at checkpoint time. This
would have been an especially big hit for shared servers running other
write-intensive services such as, say, mail.

The impetus to finally fix this came from the Windows port since Windows
simply didn't have sync(2). Afaik 8.0 won't have to issue a sync(2) call ever.

--
greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message lrnr 2004-09-16 03:32:21 How to find a column name
Previous Message Klint Gore 2004-09-16 02:25:20 Re: psql error - "unrecognizable command" V8.0.0 beta