Re: Time-Delayed Standbys - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Time-Delayed Standbys
Date
Msg-id 52A5B499.3060008@2ndquadrant.com
Whole thread Raw
In response to Re: Time-Delayed Standbys  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Time-Delayed Standbys
List pgsql-hackers
On 12/04/2013 02:46 AM, Robert Haas wrote:
>> Thanks for your review Christian...
> 
> So, I proposed this patch previously and I still think it's a good
> idea, but it got voted down on the grounds that it didn't deal with
> clock drift.  I view that as insufficient reason to reject the
> feature, but others disagreed.  Unless some of those people have
> changed their minds, I don't think this patch has much future here.

Surely that's the operating system / VM host / sysadmin / whatever's
problem?

The only way to "deal with" clock drift that isn't fragile in the face
of variable latency, etc, is to basically re-implement (S)NTP in order
to find out what the clock difference with the remote is.

If we're going to do that, why not just let the OS deal with it?

It might well be worth complaining about obvious aberrations like
timestamps in the local future - preferably by complaining and not
actually dying. It does need to be able to cope with a *skewing* clock,
but I'd be surprised if it had any issues there in the first place.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: "MauMau"
Date:
Subject: Re: Recovery to backup point
Next
From: Heikki Linnakangas
Date:
Subject: Re: Recovery to backup point