Re: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to standby servers.

From: Christopher Browne <cbbrowne(at)gmail(dot)com>
To: Michael Nolan <htfoot(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to standby servers.
Date: 2012-06-04 19:49:37
Message-ID: CAFNqd5V9d-YuCuy256Qj_+FAybAhRzdYeNstqNVYrdZYZ8Ok8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sat, Jun 2, 2012 at 12:01 PM, Michael Nolan <htfoot(at)gmail(dot)com> wrote:
> On 6/2/12, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>>> On the other hand, if we simply say "PostgreSQL computes the
>>> replication delay by subtracting the time at which the WAL was
>>> generated, as recorded on the master, from the time at which it is
>>> replayed by the slave" then, hey, we still have a wart, but it's
>>> pretty clear what the wart is and how to fix it, and we can easily
>>> document that.  Again, if we could get rid of the failure modes and
>>> make this really water-tight, I think I'd be in favor of that, but it
>>> seems to me that we are in the process of expending a lot of energy
>>> and an even larger amount of calendar time to create a system that
>>> will misbehave in numerous subtle ways instead of one straightforward
>>> one.  I don't see that as a good trade.
>>
>> Well, okay, but let's document "if you use this feature, it's incumbent
>> on you to make sure the master and slave clocks are synced.  We
>> recommend running NTP." or words to that effect.
>
> What if the two servers are in different time zones?

NTP shouldn't have any problem; it uses UTC underneath. As does
PostgreSQL, underneath.
--
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-06-05 00:13:54 pgsql: Fix some more bugs in contrib/xml2's xslt_process().
Previous Message User Karl 2012-06-04 09:42:05 pgtcl - libpgtcl: Change dbinfo option "pass" to "password".

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2012-06-04 20:32:33 Re: VIP: new format for psql - shell - simple using psql in shell
Previous Message Kohei KaiGai 2012-06-04 19:41:53 Re: [RFC] Interface of Row Level Security