pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: time-delayed standbys
Date: Wed, 20 Apr 2011 10:41:31 -0400
Message-ID: <26404.1303310491@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTimTm48ZKYrj4jGDCYuqWBUqZb+q2Q@mail.gmail.com>
References: <BANLkTi==TTzHDqWzwJDjmOf__8YuA7L1jw@mail.gmail.com>
	<BANLkTi=QScpDTkUw3iw6JaO15uUvx_P4qg@mail.gmail.com>
	<BANLkTimarB9eLhHpW73ja2oGvCaWNQuD6g@mail.gmail.com>
	<BANLkTi=hR3vGUDX-SQf=nFcL9ycmrQ6Fcg@mail.gmail.com>
	<BANLkTikPdjn98yjSR-VYywyjMe64wdrdDQ@mail.gmail.com>
	<26007.1303309175@sss.pgh.pa.us>
	<BANLkTimTm48ZKYrj4jGDCYuqWBUqZb+q2Q@mail.gmail.com>

Greg Stark <gsstark@mit.edu> writes:
> Ah, so we did put the master's clock in every message?

Yes, we did.

> Then this
> should be simple, no? Just compare the master's timestamp from the
> record to the last master's clock seen in the messages. That sounds
> equivalent but a lot safer than trying to keep a conversion between
> them.

Well, the question is what happens after you stop receiving master
messages.  If you don't make use of the slave's clock somehow,
application of WAL will stop dead in the water, which seems unlikely
to be what's wanted.

			regards, tom lane



view thread (114+ messages)  latest in thread

Message-ID: <26404.1303310491@sss.pgh.pa.us>
Permalink:  ../26404.1303310491@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26404.1303310491@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gsstark@mit.edu, robertmhaas@gmail.com
  Subject: Re: time-delayed standbys
  In-Reply-To: <26404.1303310491@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