Re: Replication/cloning: rsync vs modification dates? - Mailing list pgsql-general

From Michael Nolan
Subject Re: Replication/cloning: rsync vs modification dates?
Date
Msg-id CAOzAquKrEpcRrCOWphE_=iD79EBPj53tVS+MBrLH6rUm4DK50Q@mail.gmail.com
Whole thread Raw
In response to Re: Replication/cloning: rsync vs modification dates?  (Steven Schlansker <steven@likeness.com>)
List pgsql-general
On 7/16/12, Steven Schlansker <steven@likeness.com> wrote:
> I think it's pretty easy to show that timestamp+size isn't good enough to do
> this 100% reliably.

That may not be a problem if the slave server synchronization code
always starts to play back WAL entries at a time before the worst case
for timestamp precision.

I'm assuming here that the WAL playback process works something like this:

Look at a WAL entry, see if the disk block it references matches the
'before' indicators for that block in the WAL.   If so, update it to
the 'after' data content.

There are two non-matching conditions:

If the disk block information indicates that it should match a later
update, then that block does not need to be updated.

But if the disk block information indicates that it should match an
earlier update than the one in the WAL entry, then the synchronization
fails.

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Replication/cloning: rsync vs modification dates?
Next
From: Daniele Varrazzo
Date:
Subject: Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)