Re: Spreading full-page writes

From: Greg Stark <stark(at)mit(dot)edu>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Andres Freund <andres(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>
Subject: Re: Spreading full-page writes
Date: 2014-05-26 18:26:07
Message-ID: CAM-w4HMmQqhhctGu4URMgkEPh6zt178JCz3MVJVbJoGvuU=Ayg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 26, 2014 at 1:22 PM, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com
> wrote:

> The second record is generated before the checkpoint is finished and the
> checkpoint record is written. So it will be there.
>
> (if you crash before the checkpoint is finished, the in-progress
> checkpoint is no good for recovery anyway, and won't be used)
>

Another idea would be to have separate checkpoints for each buffer
partition. You would have to start recovery from the oldest checkpoint of
any of the partitions.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2014-05-26 18:35:22 Re: Allowing line-continuation in pgbench custom scripts
Previous Message Vik Fearing 2014-05-26 18:19:09 Re: SQL access to database attributes