Re: Bugs in CreateCheckPoint

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Zhang Zq <zqzhangmail(at)163(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bugs in CreateCheckPoint
Date: 2015-04-15 16:12:44
Message-ID: 552E8DFC.5010703@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 04/15/2015 07:02 PM, Zhang Zq wrote:
> hi,
> To avoid inserting duplicate checkpoints when the system is idle, the code of CreateCheckPoint make two tests to determine that nothing has happened since the start of the last checkpoint.
> But because the layout of XLOG record was changed, the condition would never to be true. The attachment is the patch to fix it, thanks.

Jeff Janes reported this a while ago, and as it happens, I committed a
fix earlier today. (See
http://www.postgresql.org/message-id/552E7611.1000907@iki.fi)

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-04-15 16:19:06 Re: Turning off HOT/Cleanup sometimes
Previous Message Alvaro Herrera 2015-04-15 16:11:54 Re: Turning off HOT/Cleanup sometimes