pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathon Nelson <jdnelson@dyn.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14416: checkpoints never completed
Date: Mon, 07 Nov 2016 17:20:08 -0500
Message-ID: <13353.1478557208@sss.pgh.pa.us> (raw)
In-Reply-To: <CACJqAM0no5HUKc9GhoOBBV77rpcJSJ_cSs85vw_Zw7taZchu=A@mail.gmail.com>
References: <20161107182707.1393.91785@wrigleys.postgresql.org>
	<4037.1478546535@sss.pgh.pa.us>
	<CACJqAM0no5HUKc9GhoOBBV77rpcJSJ_cSs85vw_Zw7taZchu=A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Jonathon Nelson <jdnelson@dyn.com> writes:
> On Mon, Nov 7, 2016 at 1:22 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I wonder if this is a problem similar to the autovacuum issue we fixed
>> in da1a9d0f5, ie perhaps moving the system clock setting confuses the
>> checkpoint timing logic.

> That is more or less what we were thinking as well.

Looking at the logic around this in checkpointer.c, it's pretty obvious
that it would not behave nicely if system time goes backwards after a
checkpoint starts; it would think it was ahead of schedule and would
just loaf, basically, until the clock catches up to where it had been.
There's no sanity check to notice a negative elapsed-time reading.
But if system time goes forwards, it would think it was very far behind
schedule and would do a burst of work, which doesn't seem to match your
symptom.

Please confirm the sign of the system clock correction that happened
on your machine?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <13353.1478557208@sss.pgh.pa.us>
Permalink:  ../13353.1478557208@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13353.1478557208@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jdnelson@dyn.com
  Subject: Re: BUG #14416: checkpoints never completed
  In-Reply-To: <13353.1478557208@sss.pgh.pa.us>
  References: <20161107182707.1393.91785@wrigleys.postgresql.org> <4037.1478546535@sss.pgh.pa.us> <CACJqAM0no5HUKc9GhoOBBV77rpcJSJ_cSs85vw_Zw7taZchu=A@mail.gmail.com> <13353.1478557208@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox