Re: Design proposal: fsync absorb linear slider - Mailing list pgsql-hackers

From Greg Smith
Subject Re: Design proposal: fsync absorb linear slider
Date
Msg-id 51F2448A.6020006@2ndQuadrant.com
Whole thread Raw
In response to Re: Design proposal: fsync absorb linear slider  (didier <did447@gmail.com>)
Responses Re: Design proposal: fsync absorb linear slider
Re: Design proposal: fsync absorb linear slider
Re: Design proposal: fsync absorb linear slider
List pgsql-hackers
On 7/25/13 6:02 PM, didier wrote:
> It was surely already discussed but why isn't postresql  writing
> sequentially its cache in a temporary file?

If you do that, reads of the data will have to traverse that temporary 
file to assemble their data.  You'll make every later reader pay the 
random I/O penalty that's being avoided right now.  Checkpoints are 
already postponing these random writes as long as possible. You have to 
take care of them eventually though.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: dynamic background workers, round two
Next
From: Hannu Krosing
Date:
Subject: Re: Design proposal: fsync absorb linear slider