From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
Cc: | Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Load Distributed Checkpoints, revised patch |
Date: | 2007-06-15 18:47:02 |
Message-ID: | 20070615184702.GR8313@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Heikki Linnakangas wrote:
> - The signaling between RequestCheckpoint and bgwriter is a bit tricky.
> Bgwriter now needs to deal immediate checkpoint requests, like those
> coming from explicit CHECKPOINT or CREATE DATABASE commands, differently
> from those triggered by checkpoint_segments. I'm afraid there might be
> race conditions when a CHECKPOINT is issued at the same instant as
> checkpoint_segments triggers one. What might happen then is that the
> checkpoint is performed lazily, spreading the writes, and the CHECKPOINT
> command has to wait for that to finish which might take a long time. I
> have not been able to convince myself neither that the race condition
> exists or that it doesn't.
Isn't it just a matter of having a flag to tell whether the checkpoint
should be quick or spread out, and have a command set the flag if a
checkpoint is already running?
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2007-06-15 19:01:52 | Re: Rethinking user-defined-typmod before it's too late |
Previous Message | Teodor Sigaev | 2007-06-15 18:29:16 | Re: Rethinking user-defined-typmod before it's too late |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2007-06-15 19:31:41 | Re: [PATCHES] Load Distributed Checkpoints, revised patch |
Previous Message | Tom Lane | 2007-06-15 14:58:19 | Re: WIP: script binaries renaming |